/** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } });
/** * Sets the value to the connector text after formatting the string * representation. * <p> * {@inheritDoc} */ @Override protected void setConnecteeValue(Object aValue) { getConnectedSComponent().setValue(aValue); } }
/** * Sets the value to the connector text after formatting the string * representation. * <p> * {@inheritDoc} */ @Override protected void setConnecteeValue(Object aValue) { getConnectedSComponent().setValue(aValue); } }
/** * Gets the value out of the connector text after parsing the string * representation. * <p> * {@inheritDoc} */ @Override protected Object getConnecteeValue() { // don't call getValue() due to bad focusevent delivery order of // SFormattedTextField. // return getConnectedSComponent().getValue(); try { if (getConnectedSComponent().getText() == null || getConnectedSComponent().getText().length() == 0) { return null; } return getConnectedSComponent().getFormatter().stringToValue( getConnectedSComponent().getText()); } catch (ParseException ex) { throw new ConnectorBindingException(ex); } }
/** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } });
/** * Gets the value out of the connector text after parsing the string * representation. * <p> * {@inheritDoc} */ @Override protected Object getConnecteeValue() { // don't call getValue() due to bad focusevent delivery order of // SFormattedTextField. // return getConnectedSComponent().getValue(); try { if (getConnectedSComponent().getText() == null || getConnectedSComponent().getText().length() == 0) { return null; } return getConnectedSComponent().getFormatter().stringToValue( getConnectedSComponent().getText()); } catch (ParseException ex) { throw new ConnectorBindingException(ex); } }
/** * {@inheritDoc} */ @Override protected void bindSComponent() { super.bindSComponent(); getConnectedSComponent().addActionListener(new ActionListener() { /** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } }); }
/** * {@inheritDoc} */ @Override protected void bindSComponent() { super.bindSComponent(); getConnectedSComponent().addActionListener(new ActionListener() { /** * {@inheritDoc} */ public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } }); }