/** * Instantiates a CheckBoxProvider with the given StringValue and * alignment. * * @param stringValue the StringValue to use for formatting. * @param alignment the horizontalAlignment. */ public CheckBoxProvider(StringValue stringValue, int alignment) { super(stringValue == null ? StringValues.EMPTY : stringValue, alignment); setBorderPainted(true); }
/** * {@inheritDoc}<p> * * Here: set's the buttons horizontal alignment and borderpainted properties * to this provider's properties. */ @Override protected void configureState(CellContext context) { rendererComponent.setBorderPainted(isBorderPainted()); rendererComponent.setHorizontalAlignment(getHorizontalAlignment()); }
/** * {@inheritDoc} <p> * Overridden to set the button's selected state and text.<p> * * PENDING: set icon? * * @see #getValueAsBoolean(CellContext) * @see #getValueAsString(CellContext) */ @Override protected void format(CellContext context) { rendererComponent.setSelected(getValueAsBoolean(context)); rendererComponent.setText(getValueAsString(context)); }
/** * {@inheritDoc}<p> * * Here: set's the buttons horizontal alignment and borderpainted properties * to this provider's properties. */ @Override protected void configureState(CellContext context) { rendererComponent.setBorderPainted(isBorderPainted()); rendererComponent.setHorizontalAlignment(getHorizontalAlignment()); }
/** * {@inheritDoc} <p> * Overridden to set the button's selected state and text.<p> * * PENDING: set icon? * * @see #getValueAsBoolean(CellContext) * @see #getValueAsString(CellContext) */ @Override protected void format(CellContext context) { rendererComponent.setSelected(getValueAsBoolean(context)); rendererComponent.setText(getValueAsString(context)); }
/** * {@inheritDoc}<p> * * Here: set's the buttons horizontal alignment and borderpainted properties * to this provider's properties. */ @Override protected void configureState(CellContext context) { rendererComponent.setBorderPainted(isBorderPainted()); rendererComponent.setHorizontalAlignment(getHorizontalAlignment()); }
/** * {@inheritDoc} <p> * Overridden to set the button's selected state and text.<p> * * PENDING: set icon? * * @see #getValueAsBoolean(CellContext) * @see #getValueAsString(CellContext) */ @Override protected void format(CellContext context) { rendererComponent.setSelected(getValueAsBoolean(context)); rendererComponent.setText(getValueAsString(context)); }
/** * Instantiates a CheckBoxProvider with the given StringValue and * alignment. * * @param stringValue the StringValue to use for formatting. * @param alignment the horizontalAlignment. */ public CheckBoxProvider(StringValue stringValue, int alignment) { super(stringValue == null ? StringValues.EMPTY : stringValue, alignment); setBorderPainted(true); }
/** * {@inheritDoc}<p> * * Here: set's the buttons horizontal alignment and borderpainted properties * to this provider's properties. */ @Override protected void configureState(CellContext context) { rendererComponent.setBorderPainted(isBorderPainted()); rendererComponent.setHorizontalAlignment(getHorizontalAlignment()); }
/** * {@inheritDoc} <p> * Overridden to set the button's selected state and text.<p> * * PENDING: set icon? * * @see #getValueAsBoolean(CellContext) * @see #getValueAsString(CellContext) */ @Override protected void format(CellContext context) { rendererComponent.setSelected(getValueAsBoolean(context)); rendererComponent.setText(getValueAsString(context)); }
/** * Instantiates a CheckBoxProvider with the given StringValue and * alignment. * * @param stringValue the StringValue to use for formatting. * @param alignment the horizontalAlignment. */ public CheckBoxProvider(StringValue stringValue, int alignment) { super(stringValue == null ? StringValues.EMPTY : stringValue, alignment); setBorderPainted(true); }
/** * {@inheritDoc}<p> * * Here: set's the buttons horizontal alignment and borderpainted properties * to this provider's properties. */ @Override protected void configureState(CellContext context) { rendererComponent.setBorderPainted(isBorderPainted()); rendererComponent.setHorizontalAlignment(getHorizontalAlignment()); }
/** * {@inheritDoc} <p> * Overridden to set the button's selected state and text.<p> * * PENDING: set icon? * * @see #getValueAsBoolean(CellContext) * @see #getValueAsString(CellContext) */ @Override protected void format(CellContext context) { rendererComponent.setSelected(getValueAsBoolean(context)); rendererComponent.setText(getValueAsString(context)); }
/** * Instantiates a CheckBoxProvider with the given StringValue and * alignment. * * @param stringValue the StringValue to use for formatting. * @param alignment the horizontalAlignment. */ public CheckBoxProvider(StringValue stringValue, int alignment) { super(stringValue == null ? StringValues.EMPTY : stringValue, alignment); setBorderPainted(true); }
/** * Instantiates a CheckBoxProvider with the given StringValue and * alignment. * * @param stringValue the StringValue to use for formatting. * @param alignment the horizontalAlignment. */ public CheckBoxProvider(StringValue stringValue, int alignment) { super(stringValue == null ? StringValues.EMPTY : stringValue, alignment); setBorderPainted(true); }