|
||||||||||
| 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
adams.gui.core.BaseTabbedPane
adams.gui.tools.spreadsheetviewer.TabbedPane
public class TabbedPane
A specialized tabbed pane with a few methods for easier access.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class adams.gui.core.BaseTabbedPane |
|---|
BaseTabbedPane.MiddleMouseButtonCloseApprover |
| 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 | |
|---|---|
static String |
PREFIX_TITLE
prefix for new titles. |
| Fields inherited from class adams.gui.core.BaseTabbedPane |
|---|
m_CloseTabsWithMiddleMouseButton, m_MiddleMouseButtonCloseApprover |
| 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 | |
|---|---|
TabbedPane()
|
|
| Method Summary | |
|---|---|
void |
addTab(String title,
SpreadSheetTable table)
Adds the table. |
SpreadSheet |
getCurrentSheet()
Returns the currently selected sheet. |
SpreadSheetTable |
getCurrentTable()
Returns the currently selected table. |
Color |
getNegativeBackgroundAt(int index)
Returns the background color in use for negative values. |
int |
getNumDecimalsAt(int index)
returns the number of decimals in use. |
Color |
getPositiveBackgroundAt(int index)
Returns the background color in use for positive values. |
SpreadSheet |
getSheetAt(int index)
Returns the table at the specified position. |
boolean |
getShowFormulas(int index)
Returns whether to show the formulas. |
SpreadSheetTable |
getTableAt(int index)
Returns the table at the specified position. |
List<String> |
getTabTitles()
Returns all the tab titles. |
String |
newTitle()
Returns a new title (does not reserve it). |
void |
setNegativeBackground(Color color)
Sets the background color to use for negative values. |
void |
setNegativeBackgroundAt(int index,
Color color)
Sets the background color to use negative values. |
void |
setNumDecimals(int numDec)
Sets the number of decimals to use for all tables. |
void |
setNumDecimalsAt(int index,
int numDec)
Sets the number of decimals to use. |
void |
setPositiveBackground(Color color)
Sets the background color to use for positive values. |
void |
setPositiveBackgroundAt(int index,
Color color)
Sets the background color to use positive values. |
void |
setShowFormulas(boolean value)
Sets whether to show the formulas. |
void |
setShowFormulasAt(int index,
boolean value)
Sets whether to show the formulas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PREFIX_TITLE
| Constructor Detail |
|---|
public TabbedPane()
| Method Detail |
|---|
public SpreadSheetTable getTableAt(int index)
index - the tab index of the table
public SpreadSheet getSheetAt(int index)
index - the tab index of the table
public void setNumDecimalsAt(int index,
int numDec)
index - the tab indexnumDec - the number of decimals to usepublic int getNumDecimalsAt(int index)
index - the tab index
public void setNumDecimals(int numDec)
numDec - the number of decimals to use
public void setNegativeBackgroundAt(int index,
Color color)
index - the tab indexcolor - the color to usepublic Color getNegativeBackgroundAt(int index)
index - the tab index
public void setNegativeBackground(Color color)
color - the color to use, null to unset
public void setPositiveBackgroundAt(int index,
Color color)
index - the tab indexcolor - the color to usepublic Color getPositiveBackgroundAt(int index)
index - the tab index
public void setPositiveBackground(Color color)
color - the color to use, null to unset
public void setShowFormulasAt(int index,
boolean value)
index - the tab indexvalue - whether to show the formulaspublic boolean getShowFormulas(int index)
index - the tab index
public void setShowFormulas(boolean value)
value - whether to show the formulaspublic SpreadSheetTable getCurrentTable()
public SpreadSheet getCurrentSheet()
public void addTab(String title,
SpreadSheetTable table)
title - the title for the tabtable - the table to addpublic List<String> getTabTitles()
public String newTitle()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||