本文整理汇总了Java中org.zkoss.zk.ui.select.Selectors类的典型用法代码示例。如果您正苦于以下问题:Java Selectors类的具体用法?Java Selectors怎么用?Java Selectors使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Selectors类属于org.zkoss.zk.ui.select包,在下文中一共展示了Selectors类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: FormPropertiesDialog
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public FormPropertiesDialog(Form form) throws Exception {
super();
this.form = form;
/* create the ui */
Executions.createComponents("/components/FormProperties.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setWidth("50%");
setHeight("50%");
setClosable(false);
setTitle("Form name");
txtFormName.setValue(form.getTitle());
addEventListeners();
initUI();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:22,代码来源:FormPropertiesDialog.java
示例2: SearchMenuProperties
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public SearchMenuProperties(SearchMenu menu, boolean isNew) {
super();
this.menu = menu;
this.isNew = isNew;
Executions
.createComponents("/components/searchmenuproperties.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setMinheight(250);
setMinwidth(300);
setHeight("250px");
setWidth("300px");
setClosable(true);
setSizable(true);
setTitle("Search menu properties");
initUI();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:22,代码来源:SearchMenuProperties.java
示例3: TableFieldProperties
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
/**
* Creates the TablField properties dialog window
* @param tableField
*/
public TableFieldProperties(TableField tableField) {
super();
Executions
.createComponents("/components/TableFieldProperties.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setClosable(true);
setTitle("Table Field Properties");
setMinwidth(400);
setMinheight(450);
setHeight("450px");
setWidth("400px");
setSizable(true);
this.tableField = tableField;
init();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:24,代码来源:TableFieldProperties.java
示例4: ExpandWindow
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public ExpandWindow() {
super();
this.setTitle("Expand Window");
this.setSizable(true);
this.setMode(Mode.OVERLAPPED);
this.setMinheight(150);
this.setMinwidth(150);
this.setHeight("150px");
this.setWidth("150px");
this.setClosable(true);
Executions
.createComponents("/components/expandwindow.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:19,代码来源:ExpandWindow.java
示例5: ChangeUserRoleDialog
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
/**
* Constructor
* @param user - User that need to be modified
* @throws SQLException
*/
public ChangeUserRoleDialog(User user) throws SQLException {
// create the ui
super();
Executions
.createComponents("/components/ChangeUserRoles.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setClosable(true);
setTitle("Change granted roles");
addEventListeners();
this.user = user;
refreshRolesList();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:23,代码来源:ChangeUserRoleDialog.java
示例6: DesignerElements
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public DesignerElements() {
//super();
// create the ui
Executions.createComponents("/components/ElementList.zul", this, null);
Selectors.wireComponents(this, this, false);
// load the 'toolkit.xml' configuration file
try {
config = new Configurator(
Executions.getCurrent().getDesktop().getWebApp().getRealPath(
"/config/toolkit/toolkit.xml"));
} catch (SAXException | IOException | ParserConfigurationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
createTabs();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:19,代码来源:DesignerElements.java
示例7: SelectFormDialog
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public SelectFormDialog() throws SQLException {
super();
Executions
.createComponents("/components/selectformdialog.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setMinheight(250);
setMinwidth(300);
setHeight("250px");
setWidth("300px");
setClosable(true);
setSizable(true);
setTitle("Select form");
txtFormName_onChanged();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:19,代码来源:SelectFormDialog.java
示例8: afterCompose
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
@AfterCompose
public void afterCompose(@ContextParam(ContextType.VIEW) Component view) {
Selectors.wireComponents(view, this, false);
Gridster gridster = new Gridster();
gridster.setParent(wrapper);
init(gridster);
}
开发者ID:connollyst,项目名称:zkgridster,代码行数:8,代码来源:JavaDemoViewModel.java
示例9: loadForm
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
/**
* Creates form ui
* @throws Exception
*/
private void loadForm() throws Exception {
// get form view definition
StringReader r = new StringReader(form.getView());
// sets executions parameters
HashMap<String, Object> args = new HashMap<String, Object>();
args.put("resolver", resolver);
args.put("composer", this);
// create the ui
Executions.createComponentsDirectly(r, null, detailsView, args);
Selectors.wireVariables(detailsView, this, null);
// Find all DB fields of the form and wire all events
findAllDBFields(detailsView);
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:19,代码来源:SearchComposer.java
示例10: ModelTree
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public ModelTree() throws SQLException {
IDeveloperStudio developer = DeveloperFactory.getInstance();
/* create the ui */
Executions.createComponents("/components/modeltree.zul", this, null);
Selectors.wireComponents(this, this, false);
this.trModelTree.clear();
this.trModelTree.setItemRenderer(new ModelTreeRenderer(developer));
this.trModelTree.setModel(new ModelTreeNode());
addEventListeners();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:15,代码来源:ModelTree.java
示例11: DesignerEvents
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public DesignerEvents() {
developer = DeveloperFactory.getInstance();
// create the ui
Executions.createComponents("/components/ComponentEvents.zul", this,
null);
Selectors.wireComponents(this, this, false);
setClosable(false);
// Clear properties list
clear();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:15,代码来源:DesignerEvents.java
示例12: CreateJoinFormDialog
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
/**
* Creates new instance
* @param form - Join form
* @throws Exception
*/
public CreateJoinFormDialog(Form form) throws Exception {
super();
if (!form.isJoin()) {
throw new IllegalArgumentException("Form must be join.");
}
this.form = form;
// create the ui
Executions
.createComponents("/components/createjoinformdialog.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setClosable(true);
setTitle("New join form wizard");
setSizable(true);
addEventListeners();
stages = new Component[3];
stages[0] = stage0;
stages[1] = stage1;
stages[2] = stage2;
showStage(0);
initConnectionList();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:35,代码来源:CreateJoinFormDialog.java
示例13: AddRoleDialog
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public AddRoleDialog() {
// create the ui
super();
Executions
.createComponents("/components/addroledialog.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setClosable(true);
setTitle("Add new role");
addEventListeners();
role = null;
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:16,代码来源:AddRoleDialog.java
示例14: DesignerProperties
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public DesignerProperties() {
developer = DeveloperFactory.getInstance();
// create the ui
Executions.createComponents("/components/ComponentProperties.zul", this, null);
Selectors.wireComponents(this, this, false);
setClosable(false);
// Clear properties list
clear();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:12,代码来源:DesignerProperties.java
示例15: AddUserDialog
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public AddUserDialog() {
// create the ui
super();
Executions
.createComponents("/components/adduserdialog.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setClosable(true);
setTitle("Add new user");
addEventListeners();
user = null;
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:16,代码来源:AddUserDialog.java
示例16: CharacterMenuProperties
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
/**
* Creates character menu dialog instance
* @param menu CharacterMenu to change or null for creating new menu
*/
public CharacterMenuProperties(CharacterMenu menu) {
super();
// if menu is null then create a new menu instance
if (menu == null) {
menu = new CharacterMenu();
menu.setName("New CharacterMenu");
isNew = true;
}
this.menu = menu;
// create the ui
Executions
.createComponents("/components/CharacterMenuProperties.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setClosable(true);
setSizable(true);
setMinheight(200);
setMinwidth(220);
setTitle("CharacterMenu properties");
// refresh items list
refreshMenuItems();
txtName.setText(menu.getName());
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:33,代码来源:CharacterMenuProperties.java
示例17: FormNameDialog
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public FormNameDialog(String name) {
super();
/* create the ui */
Executions.createComponents("/components/formname.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setWidth("50%");
setClosable(false);
setTitle("Form name");
txtName.setText(name);
final Window t = this;
btnOK.addEventListener(Events.ON_CLICK,
new EventListener<MouseEvent>() {
@Override
public void onEvent(MouseEvent e) throws Exception {
Event closeEvent = new Event(Events.ON_CLOSE, t);
Events.postEvent(closeEvent);
detach();
}
});
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:29,代码来源:FormNameDialog.java
示例18: DesignerTree
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public DesignerTree() {
developer = DeveloperFactory.getInstance();
// create the ui
Executions.createComponents("/components/DesignerTree.zul", this, null);
Selectors.wireComponents(this, this, false);
setTooltiptext("Real-time representation of the canvas model.");
tree.setTooltiptext("Re-order canvas elements by dragging-and-dropping the corresponding tree items. Right-click items for context menu.");
tree.setDroppable("true");
setClosable(false);
TreeOnPopupEventListener mnuListener = new TreeOnPopupEventListener(developer);
mnuCopy.addEventListener(Events.ON_CLICK, mnuListener);
mnuPaste.addEventListener(Events.ON_CLICK, mnuListener);
mnuDelete.addEventListener(Events.ON_CLICK, mnuListener);
TreeOnSelectEventListener treeListener = new TreeOnSelectEventListener(developer);
tree.addEventListener(Events.ON_SELECT, treeListener);
TreeOnDropEventListener treeOnDrop = new TreeOnDropEventListener(developer);
tree.addEventListener(Events.ON_DROP, treeOnDrop);
btnRefresh.addEventListener(Events.ON_CLICK, new EventListener<MouseEvent>() {
@Override
public void onEvent(MouseEvent e) throws Exception {
developer.getDesignerCanvas().refreshCanvas();
}
});
// initialize the Tree
clearTree();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:33,代码来源:DesignerTree.java
示例19: TableField
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public TableField() {
super();
// initialize component after all attributes are loaded
addEventListener(Events.ON_CREATE, new EventListener<CreateEvent>() {
@Override
public void onEvent(CreateEvent e) throws Exception {
onCreate(e.getArg());
}
});
selectFields = new ArrayList<IField<?>>();
/* get the composer */
if (Executions.getCurrent().getArg() != null) {
@SuppressWarnings("unchecked")
Map<String, Object> args = (Map<String, Object>) Executions.getCurrent().getArg();
Object c = args.get("composer");
if ( c!= null)
composer = (IFormComposer) c;
}
/* Create the ui */
isChildable = true;
Executions.createComponents("/components/tablefield.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
// lock the component
isChildable = false;
init();
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:37,代码来源:TableField.java
示例20: RetypePasswordDialog
import org.zkoss.zk.ui.select.Selectors; //导入依赖的package包/类
public RetypePasswordDialog(String password) {
// create the ui
super();
Executions
.createComponents("/components/retypepassword.zul", this, null);
Selectors.wireVariables(this, this, null);
Selectors.wireComponents(this, this, false);
Selectors.wireEventListeners(this, this);
setBorder("normal");
setClosable(true);
setTitle("Retype password");
addEventListeners();
this.password = password;
}
开发者ID:sinnlabs,项目名称:dbvim,代码行数:16,代码来源:RetypePasswordDialog.java
注:本文中的org.zkoss.zk.ui.select.Selectors类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论