public abstract class IOTab
extends java.lang.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 javax.swing.Icon |
getIcon() |
Gets current tab icon
|
static javax.swing.Icon |
getIcon(InputOutput io) |
Gets current tab icon for specified IO
|
protected abstract java.lang.String |
getToolTipText() |
Gets current tool tip text
|
static java.lang.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(javax.swing.Icon icon) |
Sets icon to tab
|
static void |
setIcon(InputOutput io,
javax.swing.Icon icon) |
Sets icon to tab corresponding to specified IO
|
protected abstract void |
setToolTipText(java.lang.String text) |
Sets tool tip text to tab
|
static void |
setToolTipText(InputOutput io,
java.lang.String text) |
Sets tool tip text to tab corresponding to specified IO
|
public static javax.swing.Icon getIcon(InputOutput io)
io - IO to operate onpublic static void setIcon(InputOutput io, javax.swing.Icon icon)
io - IO to operate onicon - tab iconpublic static java.lang.String getToolTipText(InputOutput io)
io - IO to operate onpublic static void setToolTipText(InputOutput io, java.lang.String text)
io - IO to operate ontext - new tool tip textpublic static boolean isSupported(InputOutput io)
io - IO to check onprotected abstract javax.swing.Icon getIcon()
protected abstract void setIcon(javax.swing.Icon icon)
icon - tab iconprotected abstract java.lang.String getToolTipText()
protected abstract void setToolTipText(java.lang.String text)
text - new tool tip textBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.