/** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } });
/** * {@inheritDoc} */ @Override public void writabilityChange() { super.writabilityChange(); getConnectedSComponent().setEnabled(isWritable()); }
private IView<SComponent> createBooleanPropertyView( IBooleanPropertyDescriptor propertyDescriptor, IActionHandler actionHandler, @SuppressWarnings("unused") Locale locale) { SCheckBox viewComponent = createSCheckBox(); SCheckBoxConnector connector = new SCheckBoxConnector(propertyDescriptor .getName(), viewComponent); connector.setExceptionHandler(actionHandler); return constructView(viewComponent, null, connector); }
/** * Returns a <code>Boolean</code> object mapping the state of the button. * <p> * {@inheritDoc} */ @Override protected Object getConnecteeValue() { return new Boolean(getConnectedSComponent().isSelected()); }
/** * {@inheritDoc} */ @Override public void updateState() { super.updateState(); getConnectedSComponent().setEnabled(isWritable()); }
/** * {@inheritDoc} */ @Override protected IView<SComponent> createBooleanPropertyView( IPropertyViewDescriptor propertyViewDescriptor, IActionHandler actionHandler, @SuppressWarnings("unused") Locale locale) { IBooleanPropertyDescriptor propertyDescriptor = (IBooleanPropertyDescriptor) propertyViewDescriptor .getModelDescriptor(); SCheckBox viewComponent = createSCheckBox(); SCheckBoxConnector connector = new SCheckBoxConnector( propertyDescriptor.getName(), viewComponent); connector.setExceptionHandler(actionHandler); return constructView(viewComponent, propertyViewDescriptor, connector); }
/** * Returns a <code>Boolean</code> object mapping the state of the button. * <p> * {@inheritDoc} */ @Override protected Object getConnecteeValue() { return new Boolean(getConnectedSComponent().isSelected()); }
/** * Set the state of the button depending on the connector value to set. * <p> * {@inheritDoc} */ @Override protected void setConnecteeValue(Object aValue) { if (aValue == null) { getConnectedSComponent().setSelected(false); } else { getConnectedSComponent().setSelected(((Boolean) aValue).booleanValue()); } }
/** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } });
/** * {@inheritDoc} */ @Override protected void bindSComponent() { getConnectedSComponent().addActionListener(new ActionListener() { /** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } }); }
/** * Set the state of the button depending on the connector value to set. * <p> * {@inheritDoc} */ @Override protected void setConnecteeValue(Object aValue) { if (aValue == null) { getConnectedSComponent().setSelected(false); } else { getConnectedSComponent().setSelected(((Boolean) aValue).booleanValue()); } }
/** * {@inheritDoc} */ @Override protected void bindSComponent() { getConnectedSComponent().addActionListener(new ActionListener() { /** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } }); }