public class TabIconBooleanFeedback extends Object implements com.google.code.validationframework.api.resulthandler.ResultHandler<Boolean>, com.google.code.validationframework.api.common.Disposable
JTabbedPane.setIconAt(int, Icon) will not be shown.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ICON_POSITION
Default icon position with respect to the tab title.
|
static int |
DEFAULT_ICON_TEXT_GAP
Default spacing between the icon and the tab title.
|
static Icon |
DEFAULT_INVALID_ICON
Default icon to represent invalid results.
|
static Icon |
DEFAULT_VALID_ICON
Default icon to represent valid results.
|
| Constructor and Description |
|---|
TabIconBooleanFeedback(JTabbedPane tabbedPane,
int tabIndex)
Constructor specifying the tabbed pane and the index of the tab to show the decoration on.
|
TabIconBooleanFeedback(JTabbedPane tabbedPane,
int tabIndex,
Icon invalidIcon,
String invalidText)
Constructor specifying the tabbed pane, the index of the tab to show the decoration on, the invalid icon and the
tooltip text to be shown for the invalid icon.
|
TabIconBooleanFeedback(JTabbedPane tabbedPane,
int tabIndex,
Icon validIcon,
String validText,
Icon invalidIcon,
String invalidText)
Constructor specifying the tabbed pane and the index of the tab to show the decoration on, as well as the icon
and tooltip text representing valid and invalid results.
|
TabIconBooleanFeedback(JTabbedPane tabbedPane,
int tabIndex,
Icon validIcon,
String validText,
Icon invalidIcon,
String invalidText,
int iconPosition,
int iconTextGap)
Constructor specifying the tabbed pane and the index of the tab to show the decoration on, as well as the icon
and tooltip text representing valid and invalid results, and the position and spacing of the decoration icon with
respect to the tab title.
|
TabIconBooleanFeedback(JTabbedPane tabbedPane,
int tabIndex,
String invalidText)
Constructor specifying the tabbed pane, the index of the tab to show the decoration on, and the tooltip text to
be shown for the invalid icon.
|
public static final Icon DEFAULT_VALID_ICON
public static final Icon DEFAULT_INVALID_ICON
public static final int DEFAULT_ICON_POSITION
public static final int DEFAULT_ICON_TEXT_GAP
public TabIconBooleanFeedback(JTabbedPane tabbedPane, int tabIndex)
tabbedPane - Tabbed pane to show the icon tip feedback on.tabIndex - Index of the tab to show the icon tip feedback on.public TabIconBooleanFeedback(JTabbedPane tabbedPane, int tabIndex, String invalidText)
tabbedPane - Tabbed pane to show the icon tip feedback on.tabIndex - Index of the tab to show the icon tip feedback on.invalidText - Tooltip text to be shown for the invalid icon, or null.public TabIconBooleanFeedback(JTabbedPane tabbedPane, int tabIndex, Icon invalidIcon, String invalidText)
tabbedPane - Tabbed pane to show the icon tip feedback on.tabIndex - Index of the tab to show the icon tip feedback on.invalidIcon - Icon representing invalid results, or null.invalidText - Tooltip text to be shown for the invalid icon, or null.public TabIconBooleanFeedback(JTabbedPane tabbedPane, int tabIndex, Icon validIcon, String validText, Icon invalidIcon, String invalidText)
tabbedPane - Tabbed pane to show the icon tip feedback on.tabIndex - Index of the tab to show the icon tip feedback on.validIcon - Icon representing valid results, or null.validText - Tooltip text on the valid icon explaining the valid results, or null.invalidIcon - Icon representing invalid results, or null.invalidText - Tooltip text on the invalid icon explaining the invalid results, or null.public TabIconBooleanFeedback(JTabbedPane tabbedPane, int tabIndex, Icon validIcon, String validText, Icon invalidIcon, String invalidText, int iconPosition, int iconTextGap)
tabbedPane - Tabbed pane to show the icon tip feedback on.tabIndex - Index of the tab to show the icon tip feedback on.validIcon - Icon representing valid results, or null.validText - Tooltip text on the valid icon explaining the valid results, or null.invalidIcon - Icon representing invalid results, or null.invalidText - Tooltip text on the invalid icon explaining the invalid results, or null.iconPosition - Position of the icon with respect to the tab title.SwingConstants.LEADING, SwingConstants.LEFT,
SwingConstants.TRAILING or SwingConstants.RIGHT.iconTextGap - Spacing between the icon and the text.public void handleResult(Boolean result)
handleResult in interface com.google.code.validationframework.api.resulthandler.ResultHandler<Boolean>ResultHandler.handleResult(Object)public void dispose()
dispose in interface com.google.code.validationframework.api.common.DisposableDisposable.dispose()Copyright © 2015. All Rights Reserved.