public abstract class IOTab extends Object
Client usage:
// settings of IO tab icon, tooltip InputOutput io = ...; Icon icon = ...; IOTab.setIcon(io, icon); IOTab.setToolTipText(io, "text");How to support
IOTab
in own IOProvider
implementation:
InputOutput
provided by IOProvider
has to implement Lookup.Provider
IOTab
and implement its abstract methods
IOTab
to Lookup
provided by InputOutput
Constructor and Description |
---|
IOTab() |
Modifier and Type | Method and Description |
---|---|
protected abstract Icon |
getIcon()
Gets current tab icon
|
static Icon |
getIcon(InputOutput io)
Gets current tab icon for specified IO
|
protected abstract String |
getToolTipText()
Gets current tool tip text
|
static String |
getToolTipText(InputOutput io)
Gets current tool tip text for specified IO
|
static boolean |
isSupported(InputOutput io)
Checks whether this feature is supported for provided IO
|
protected abstract void |
setIcon(Icon icon)
Sets icon to tab
|
static void |
setIcon(InputOutput io,
Icon icon)
Sets icon to tab corresponding to specified IO
|
static void |
setToolTipText(InputOutput io,
String text)
Sets tool tip text to tab corresponding to specified IO
|
protected abstract void |
setToolTipText(String text)
Sets tool tip text to tab
|
public static Icon getIcon(InputOutput io)
io
- IO to operate onpublic static void setIcon(InputOutput io, Icon icon)
io
- IO to operate onicon
- tab iconpublic static String getToolTipText(InputOutput io)
io
- IO to operate onpublic static void setToolTipText(InputOutput io, String text)
io
- IO to operate ontext
- new tool tip textpublic static boolean isSupported(InputOutput io)
io
- IO to check onprotected abstract Icon getIcon()
protected abstract void setIcon(Icon icon)
icon
- tab iconprotected abstract String getToolTipText()
protected abstract void setToolTipText(String text)
text
- new tool tip text