|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTabbedPane
org.compiere.swing.CTabbedPane
public class CTabbedPane
Compiere Color Tabbed Pane
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTabbedPane |
|---|
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JTabbedPane |
|---|
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
CTabbedPane()
Creates an empty TabbedPane with a default
tab placement of JTabbedPane.TOP and default
tab layout policy of JTabbedPane.WRAP_TAB_LAYOUT. |
|
CTabbedPane(CompiereColor bg)
Creates an empty TabbedPane with a defaults and Color |
|
CTabbedPane(int tabPlacement)
Creates an empty TabbedPane with the specified tab placement
of either: JTabbedPane.TOP, JTabbedPane.BOTTOM,
JTabbedPane.LEFT, or JTabbedPane.RIGHT, and a
default tab layout policy of JTabbedPane.WRAP_TAB_LAYOUT. |
|
CTabbedPane(int tabPlacement,
int tabLayoutPolicy)
Creates an empty TabbedPane with the specified tab placement
and tab layout policy. |
|
| Method Summary | |
|---|---|
CompiereColor |
getBackgroundColor()
Get Background |
void |
insertTab(String text,
Icon icon,
Component component,
String tip,
int index)
Insert tab. |
void |
setBackground(Color bg)
Set Background - ignored by UI - |
void |
setBackgroundColor()
Set Standard Background |
void |
setBackgroundColor(CompiereColor bg)
Set Background |
boolean |
setMnemonicAt(int index,
String text)
Set Mnemonic for Index based on text |
void |
setTitleAt(int index,
String text)
Set Title At |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CTabbedPane()
TabbedPane with a default
tab placement of JTabbedPane.TOP and default
tab layout policy of JTabbedPane.WRAP_TAB_LAYOUT.
public CTabbedPane(int tabPlacement)
TabbedPane with the specified tab placement
of either: JTabbedPane.TOP, JTabbedPane.BOTTOM,
JTabbedPane.LEFT, or JTabbedPane.RIGHT, and a
default tab layout policy of JTabbedPane.WRAP_TAB_LAYOUT.
tabPlacement - the placement for the tabs relative to the content
public CTabbedPane(int tabPlacement,
int tabLayoutPolicy)
TabbedPane with the specified tab placement
and tab layout policy. Tab placement may be either:
JTabbedPane.TOP, JTabbedPane.BOTTOM,
JTabbedPane.LEFT, or JTabbedPane.RIGHT.
Tab layout policy may be either: JTabbedPane.WRAP_TAB_LAYOUT
or JTabbedPane.SCROLL_TAB_LAYOUT.
tabPlacement - the placement for the tabs relative to the contenttabLayoutPolicy - the policy for laying out tabs when all tabs will not fit on one run
IllegalArgumentException - if tab placement or tab layout policy are not
one of the above supported valuespublic CTabbedPane(CompiereColor bg)
TabbedPane with a defaults and Color
bg - Color| Method Detail |
|---|
public void setBackground(Color bg)
setBackground in class JComponentbg - ignoredpublic void setBackgroundColor()
public void setBackgroundColor(CompiereColor bg)
bg - CompiereColor for Background, if null set standard backgroundpublic CompiereColor getBackgroundColor()
public void insertTab(String text,
Icon icon,
Component component,
String tip,
int index)
Inserts a component, at index,
represented by a title and/or icon,
either of which may be null. If icon
is non-null and it implements
ImageIcon a corresponding disabled icon will automatically
be created and set on the tabbedpane.
Uses java.util.Vector internally, see insertElementAt
for details of insertion conventions.
insertTab in class JTabbedPanetext - the title with Mnemonic to be displayed in this tabicon - the icon to be displayed in this tabcomponent - The component to be displayed when this tab is clicked.tip - the tooltip to be displayed for this tabindex - the position to insert this new tab
public void setTitleAt(int index,
String text)
setTitleAt in class JTabbedPaneindex - indextext - title with opt Mnemonic
public boolean setMnemonicAt(int index,
String text)
index - for indextext - textpublic String toString()
toString in class Component
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||