For IntelliJ IDEA and
Android Studio


/** * 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()); }
@SuppressWarnings("deprecation") protected void setDefaultCellRenderers() { setDefaultRenderer(Object.class, new ResultSetCellRenderer()); setDefaultRenderer(String.class, new ResultSetCellRenderer()); setDefaultRenderer(Number.class, new ResultSetCellRenderer(StringValues.NUMBER_TO_STRING, JLabel.RIGHT)); setDefaultRenderer(Boolean.class, new ResultSetCellRenderer(new CheckBoxProvider())); setDefaultRenderer(java.sql.Date.class, new ResultSetCellRenderer(StringValues.DATE_TO_STRING)); setDefaultRenderer(java.sql.Time.class, new ResultSetCellRenderer(ResultSetCellRenderer.TIME_TO_STRING)); setDefaultRenderer(java.sql.Timestamp.class, new ResultSetCellRenderer(ResultSetCellRenderer.DATETIME_TO_STRING)); setDefaultRenderer(java.util.Date.class, new ResultSetCellRenderer(ResultSetCellRenderer.DATETIME_TO_STRING)); }
/** * {@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()); }
/** * 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); }
/** * {@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> * * 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> * * 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()); }
/** * 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); }
/** * {@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> * 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> * 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)); }