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 | Description |
---|---|
IOTab() |
Modifier and Type | Method | 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
|
protected abstract void |
setToolTipText(String text) |
Sets tool tip text to tab
|
static void |
setToolTipText(InputOutput io,
String text) |
Sets tool tip text to tab corresponding to specified IO
|
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 textBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.