/** * {@inheritDoc} */ @Override public void focusLost(FocusEvent e) { if (!e.isTemporary()) { fireConnectorValueChange(); } } });
/** * {@inheritDoc} */ @Override protected void protectedUpdateState() { super.protectedUpdateState(); getConnectedJComponent().setEditable(isWritable()); } }
private IView<JComponent> createSourceCodePropertyView( ISourceCodePropertyDescriptor propertyDescriptor, IActionHandler actionHandler, @SuppressWarnings("unused") Locale locale) { JEditTextArea viewComponent = createJEditTextArea(propertyDescriptor .getLanguage()); JEditTextAreaConnector connector = new JEditTextAreaConnector( propertyDescriptor.getName(), viewComponent); connector.setExceptionHandler(actionHandler); return constructView(viewComponent, null, connector); }
/** * Gets the value out of the connector. * <p> * {@inheritDoc} */ @Override protected Object protectedGetConnecteeValue() { return getConnectedJComponent().getText(); }
/** * {@inheritDoc} */ @Override protected IView<JComponent> createSourceCodePropertyView(IPropertyViewDescriptor propertyViewDescriptor, IActionHandler actionHandler, Locale locale) { ISourceCodePropertyDescriptor propertyDescriptor = (ISourceCodePropertyDescriptor) propertyViewDescriptor .getModelDescriptor(); JEditTextArea viewComponent = createJEditTextArea(propertyViewDescriptor, propertyDescriptor.getLanguage()); JEditTextAreaConnector connector = new JEditTextAreaConnector(propertyDescriptor.getName(), viewComponent); connector.setExceptionHandler(actionHandler); return constructView(viewComponent, propertyViewDescriptor, connector); }
/** * Gets the value out of the connector. * <p> * {@inheritDoc} */ @Override protected Object getConnecteeValue() { return getConnectedJComponent().getText(); }
/** * {@inheritDoc} */ @Override protected void protectedWritabilityChange() { super.protectedWritabilityChange(); getConnectedJComponent().setEditable(isWritable()); } }
/** * Sets the value to the connector text. * <p> * {@inheritDoc} */ @Override protected void protectedSetConnecteeValue(Object aValue) { if (aValue == null) { getConnectedJComponent().setText(null); } else { getConnectedJComponent().setText(aValue.toString()); } }
/** * {@inheritDoc} */ @Override public void focusLost(FocusEvent e) { if (!e.isTemporary()) { fireConnectorValueChange(); } } });
/** * Sets the value to the connector text. * <p> * {@inheritDoc} */ @Override protected void protectedSetConnecteeValue(Object aValue) { if (aValue == null) { getConnectedJComponent().setText(null); } else { getConnectedJComponent().setText(aValue.toString()); } }
/** * {@inheritDoc} */ @Override protected void bindJComponent() { getConnectedJComponent().addFocusListener(new FocusAdapter() { /** * {@inheritDoc} */ @Override public void focusLost(FocusEvent e) { if (!e.isTemporary()) { fireConnectorValueChange(); } } }); }
/** * {@inheritDoc} */ @Override protected void bindJComponent() { getConnectedJComponent().addFocusListener(new FocusAdapter() { /** * {@inheritDoc} */ @Override public void focusLost(FocusEvent e) { if (!e.isTemporary()) { fireConnectorValueChange(); } } }); }