|
org.openide.io 1.23.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.windows.IOTab
public abstract class IOTab
Settings of tool tip/icon for IO component (tab).
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 Summary | |
|---|---|
IOTab()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IOTab()
| Method Detail |
|---|
public static Icon getIcon(InputOutput io)
io - IO to operate on
public static void setIcon(InputOutput io,
Icon icon)
io - IO to operate onicon - tab iconpublic static String getToolTipText(InputOutput io)
io - IO to operate on
public 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 on
protected 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
|
org.openide.io 1.23.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||