@Override public void setReadOnly(boolean readOnly) { super.setReadOnly(readOnly); buttonLayout.setVisible(!readOnly); }
@Override public void selectedTabChange(SelectedTabChangeEvent event) { final TabSheet source = (TabSheet) event.getSource(); if (source == tabSheet) { // Bizarrely enough, getSelectedTab() returns the contained // Component, not the Tab itself. // // If the first tab was selected... if (source.getSelectedTab() == view) { extraControls.setVisible(true); } else { extraControls.setVisible(false); } } } });
@Override public void selectedTabChange(final SelectedTabChangeEvent event) { final TabSheet source = (TabSheet) event.getSource(); if (source == tabSheet) { // Bizarrely enough, getSelectedTab() returns the contained // Component, not the Tab itself. // // If the first tab was selected... if (source.getSelectedTab() == view) { extraControls.setVisible(true); } else { extraControls.setVisible(false); } } } });
@Override public void setReadOnly(boolean readOnly) { table.setEditable(!readOnly); toolbar.setVisible(!readOnly); super.setReadOnly(readOnly); }
public void buttonClick(Button.ClickEvent event) { progressLayout.setVisible(false); upload.setVisible(true); close(); } });
public void buttonClick(ClickEvent event) { progressLayout.setVisible(false); upload.setVisible(true); close(); } });
public void buttonClick(Button.ClickEvent event) { progressLayout.setVisible(false); upload.setVisible(true); close(); } });
@Override public void setReadOnly(boolean readOnly) { table.setEditable(!readOnly); toolbar.setVisible(!readOnly); super.setReadOnly(readOnly); }
public void buttonClick(ClickEvent event) { mappingConfiguration = null; progressLayout.setVisible(false); upload.setVisible(true); close(); } });
@Override public void setReadOnly(boolean readOnly) { table.setEditable(!readOnly); toolbar.setVisible(!readOnly); super.setReadOnly(readOnly); }
@Override public void setReadOnly(boolean readOnly) { table.setEditable(!readOnly); toolbar.setVisible(!readOnly); super.setReadOnly(readOnly); }
@Override public void setReadOnly(boolean readOnly) { table.setEditable(!readOnly); toolbar.setVisible(!readOnly); super.setReadOnly(readOnly); }
/** * Adds a button to the button bar.<p> * * @param button the button to add * @param right to align the button right */ public void addButton(Component button, boolean right) { if (right) { m_buttonPanelRight.addComponent(button); } else { m_buttonPanelLeft.addComponent(button); m_buttonPanelLeft.setVisible(true); } }
@Override public void setReadOnly(boolean readOnly) { step.setReadOnly(readOnly); table.setEditable(!readOnly); toolbar.setVisible(!readOnly); super.setReadOnly(readOnly); }
public void buttonClick(ClickEvent event) { progressLayout.setVisible(false); upload.setVisible(true); close(); Notification.show("Module component configurations successfully imported! Please save congiuration to apply changes." , Notification.Type.HUMANIZED_MESSAGE); } });
@Override public void setReadOnly(boolean readOnly) { combo.setReadOnly(readOnly); table.setEditable(!readOnly); toolbar.setVisible(!readOnly); super.setReadOnly(readOnly); }
public void buttonClick(Button.ClickEvent event) { helper.save(); progressLayout.setVisible(false); upload.setVisible(true); close(); Notification.show("Flow component configurations successfully imported!" , Notification.Type.HUMANIZED_MESSAGE); } });
public void buttonClick(Button.ClickEvent event) { moduleImportHelper.save(); progressLayout.setVisible(false); upload.setVisible(true); close(); Notification.show("Module component configurations successfully imported!" , Notification.Type.HUMANIZED_MESSAGE); } });
/** * Instantiates a new MIB object field. * * @param resourceTypes the available resource types * @param mibGroupEditable true, if the MIB group can be modified */ public MibObjField(final List<String> resourceTypes, boolean mibGroupEditable) { table.addStyleName("light"); table.setVisibleColumns(new Object[] { "oid", "instance", "alias", "type" }); table.setColumnHeaders(new String[] { "OID", "Instance", "Alias", "Type" }); table.setEditable(!isReadOnly()); table.setSelectable(true); table.setHeight("250px"); table.setWidth("100%"); table.setTableFieldFactory(new MibObjFieldFactory(resourceTypes)); if (mibGroupEditable) { toolbar.addComponent(add); toolbar.addComponent(delete); } toolbar.setVisible(table.isEditable()); setValidationVisible(true); }
toolbar.addComponent(add); toolbar.addComponent(delete); toolbar.setVisible(table.isEditable());