/** * Updates the action properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateActionUI() { if (getAction() == null) return; Icon icon = (Icon) getAction().getValue(Action.SMALL_ICON); if ((icon == null) || (icon instanceof UIResource)) { icon = UIManager.getIcon(COLUMN_CONTROL_BUTTON_ICON_KEY); getAction().putValue(Action.SMALL_ICON, icon); } }
/** * Updates the action properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateActionUI() { if (getAction() == null) return; Icon icon = (Icon) getAction().getValue(Action.SMALL_ICON); if ((icon == null) || (icon instanceof UIResource)) { icon = UIManager.getIcon(COLUMN_CONTROL_BUTTON_ICON_KEY); getAction().putValue(Action.SMALL_ICON, icon); } }
/** * Updates the action properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateActionUI() { if (getAction() == null) return; Icon icon = (Icon) getAction().getValue(Action.SMALL_ICON); if ((icon == null) || (icon instanceof UIResource)) { icon = UIManager.getIcon(COLUMN_CONTROL_BUTTON_ICON_KEY); getAction().putValue(Action.SMALL_ICON, icon); } }
/** * Updates the action properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateActionUI() { if (getAction() == null) return; Icon icon = (Icon) getAction().getValue(Action.SMALL_ICON); if ((icon == null) || (icon instanceof UIResource)) { icon = UIManager.getIcon(COLUMN_CONTROL_BUTTON_ICON_KEY); getAction().putValue(Action.SMALL_ICON, icon); } }
/** * Updates the action properties provided by the LAF. * Here: overwrites the action's small_icon with the icon from the ui if the current * icon is null or a UIResource. */ protected void updateActionUI() { if (getAction() == null) return; Icon icon = (Icon) getAction().getValue(Action.SMALL_ICON); if ((icon == null) || (icon instanceof UIResource)) { icon = UIManager.getIcon(COLUMN_CONTROL_BUTTON_ICON_KEY); getAction().putValue(Action.SMALL_ICON, icon); } }
/** * Synchs this button's enabled with table's enabled. * */ protected void updateFromTableEnabledChanged() { getAction().setEnabled(table.isEnabled()); } /**
/** * Synchs this button's enabled with table's enabled. * */ protected void updateFromTableEnabledChanged() { getAction().setEnabled(table.isEnabled()); } /**
/** * Synchs this button's enabled with table's enabled. * */ protected void updateFromTableEnabledChanged() { getAction().setEnabled(table.isEnabled()); } /**
/** * Synchs this button's enabled with table's enabled. * */ protected void updateFromTableEnabledChanged() { getAction().setEnabled(table.isEnabled()); } /**
/** * Synchs this button's enabled with table's enabled. * */ protected void updateFromTableEnabledChanged() { getAction().setEnabled(table.isEnabled()); } /**