|
|
@ -20,6 +20,7 @@ import com.fr.form.ui.Widget; |
|
|
|
import com.fr.form.ui.container.WLayout; |
|
|
|
import com.fr.form.ui.container.WLayout; |
|
|
|
import com.fr.form.ui.container.WSortLayout; |
|
|
|
import com.fr.form.ui.container.WSortLayout; |
|
|
|
import com.fr.form.ui.mobile.MobileBookMark; |
|
|
|
import com.fr.form.ui.mobile.MobileBookMark; |
|
|
|
|
|
|
|
import com.fr.form.ui.widget.CRBoundsWidget; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.IOUtils; |
|
|
|
import com.fr.general.IOUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
@ -33,6 +34,7 @@ import java.awt.event.FocusEvent; |
|
|
|
import java.awt.event.KeyAdapter; |
|
|
|
import java.awt.event.KeyAdapter; |
|
|
|
import java.awt.event.KeyEvent; |
|
|
|
import java.awt.event.KeyEvent; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.Iterator; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author hades |
|
|
|
* @author hades |
|
|
@ -180,12 +182,16 @@ public class MobileAdvanceDefinePane extends MobileWidgetDefinePane { |
|
|
|
Form form = WidgetPropertyPane.getInstance().getEditingFormDesigner().getTarget(); |
|
|
|
Form form = WidgetPropertyPane.getInstance().getEditingFormDesigner().getTarget(); |
|
|
|
WLayout container = form.getContainer(); |
|
|
|
WLayout container = form.getContainer(); |
|
|
|
WSortLayout wSortLayout = (WSortLayout) container.getWidget(container.getWidgetCount() - 1); |
|
|
|
WSortLayout wSortLayout = (WSortLayout) container.getWidget(container.getWidgetCount() - 1); |
|
|
|
Iterator<String> iterator = wSortLayout.getMobileWidgetIterator(); |
|
|
|
List<String> list = wSortLayout.getOrderedMobileWidgetList(); |
|
|
|
while (iterator.hasNext()) { |
|
|
|
for (String value : list) { |
|
|
|
Widget widget = form.getWidgetByName(iterator.next()); |
|
|
|
Widget widget = form.getWidgetByName(value); |
|
|
|
if (widget != null && ComparatorUtils.equals(widget.getMobileBookMark().getBookMarkName(), name)) { |
|
|
|
if (widget != null && ComparatorUtils.equals(widget.getMobileBookMark().getBookMarkName(), name)) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
CRBoundsWidget boundsWidget = (CRBoundsWidget) wSortLayout.getWidget(value); |
|
|
|
|
|
|
|
if (boundsWidget != null && ComparatorUtils.equals(boundsWidget.getWidget().getMobileBookMark().getBookMarkName(), name)) { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|