public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); }
/** * {@inheritDoc} */ @Override public void updateState() { super.updateState(); getConnectedSComponent().setEnabled(isWritable()); }
/** * Sets the value to the connector text after formatting the string * representation. * <p> * {@inheritDoc} */ @Override public void setConnecteeValue(Object aValue) { getConnectedSComponent().setDate((Date) aValue); }
private IView<SComponent> createDatePropertyView( IDatePropertyDescriptor propertyDescriptor, IActionHandler actionHandler, Locale locale) { XCalendar viewComponent = createDateField(); DateFormat format = createDateFormat(propertyDescriptor, locale); viewComponent.setFormatter(new SDateFormatter(format)); XCalendarConnector connector = new XCalendarConnector(propertyDescriptor .getName(), viewComponent); connector.setExceptionHandler(actionHandler); adjustSizes(viewComponent, createFormatter(format), getDateTemplateValue(propertyDescriptor), 64); return constructView(viewComponent, null, connector); }
/** * {@inheritDoc} */ @Override protected IView<SComponent> createDatePropertyView( IPropertyViewDescriptor propertyViewDescriptor, IActionHandler actionHandler, Locale locale) { IDatePropertyDescriptor propertyDescriptor = (IDatePropertyDescriptor) propertyViewDescriptor .getModelDescriptor(); IValueConnector connector; SComponent viewComponent; DateFormat format = createDateFormat(propertyDescriptor, locale); IFormatter formatter = createFormatter(format); if (propertyViewDescriptor.isReadOnly()) { viewComponent = createSLabel(true); connector = new SLabelConnector(propertyDescriptor.getName(), (SLabel) viewComponent); ((SLabelConnector) connector).setFormatter(formatter); } else { viewComponent = createDateField(); ((XCalendar) viewComponent).setFormatter(new SDateFormatter(format)); connector = new XCalendarConnector(propertyDescriptor.getName(), (XCalendar) viewComponent); adjustSizes(propertyViewDescriptor, viewComponent, formatter, getDateTemplateValue(propertyDescriptor), 64); } connector.setExceptionHandler(actionHandler); return constructView(viewComponent, propertyViewDescriptor, connector); }
/** * {@inheritDoc} */ @Override public void writabilityChange() { super.writabilityChange(); getConnectedSComponent().setEnabled(isWritable()); }
/** * Sets the value to the connector text after formatting the string * representation. * <p> * {@inheritDoc} */ @Override public void setConnecteeValue(Object aValue) { getConnectedSComponent().setDate((Date) aValue); }
/** * {@inheritDoc} */ @Override protected void bindSComponent() { getConnectedSComponent().addActionListener(new ActionListener() { public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } }); }
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() { return getConnectedSComponent().getDate(); } }
/** * Gets the value out of the connector text after parsing the string * representation. * <p> * {@inheritDoc} */ @Override protected Object getConnecteeValue() { return getConnectedSComponent().getDate(); } }
/** * {@inheritDoc} */ @Override protected void bindSComponent() { getConnectedSComponent().addActionListener(new ActionListener() { public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) { fireConnectorValueChange(); } }); }