|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQContainer
yu.ac.bg.etf.javaqx.qswing.JQTabbedPane
TabbedPane Component.
Field Summary |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.QSwingConstants |
BOTTOM, CENTER, HORIZONTAL, LEADING, LEFT, RIGHT, TOP, TRAILING, VERTICAL |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQTabbedPaneProperties |
PROPERTY_INDEX_FOR_TITLE, PROPERTY_SELECTED_INDEX, PROPERTY_TAB_LAYOUT_POLICY, PROPERTY_TAB_PLACEMENT |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQContainerProperties |
PROPERTY_LAYOUT_MANAGER |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Constructor Summary | |
JQTabbedPane()
Constructs new JQTabbedPane object. |
|
JQTabbedPane(int tabPlacement)
Constructs new JQTabbedPane object. |
Method Summary | |
JQComponent |
add(JQComponent component)
Appends the specified component to the end of this container. |
JQComponent |
add(JQComponent component,
int index)
Adds the specified component to this container at the given position. |
JQComponent |
add(JQComponent component,
java.lang.Object constraints)
Appends the specified component to the end of this container. |
JQComponent |
add(JQComponent component,
java.lang.Object constraints,
int index)
Inserts the specified component at the specified index. |
JQComponent |
addTab(java.lang.String title,
Icon icon,
JQComponent component)
Adds new tab. |
JQComponent |
addTab(java.lang.String title,
Icon icon,
JQComponent component,
java.lang.String tooltip)
Adds new tab. |
JQComponent |
addTab(java.lang.String title,
JQComponent component)
Adds new tab. |
Icon |
getDisabledIconAt(int index)
Returns disabled icon of the specified tab. |
Icon |
getIconAt(int index)
Returns icon of the specified tab. |
JQComponent |
getSelectedComponent()
Returns currently selected component. |
int |
getSelectedIndex()
Returns index of the selected component. |
int |
getTabPlacement()
Returns tab placement. |
java.lang.String |
getTitleAt(int index)
Returns the title of the tab at specified index. |
java.lang.String |
getToolTipTextAt(int index)
Returns the tool tip text of the tab at specified index. |
java.lang.String |
getWhatsThisText(int index)
Returns the what's this text of the tab at specified index. |
JQComponent |
insertTab(java.lang.String title,
Icon icon,
JQComponent component,
java.lang.String tooltip,
int index)
Inserts new tab at specified position. |
void |
invalidate()
Invalidates the component. |
boolean |
isEnabledAt(int index)
Returns true if the tab at specified index is enabled. |
protected java.lang.String |
paramString()
Returns parameters string. |
void |
setDisabledAt(int index,
Icon icon)
Sets disabled icon of the specified tab. |
void |
setEnabledAt(int index,
boolean enabled)
Enables/disables the component at specified index. |
void |
setIconAt(int index,
Icon icon)
Sets icon of the specified tab. |
void |
setLayout(LayoutManager layoutManager)
Sets the layout manager for this container. |
void |
setSelectedComponent(JQComponent component)
Sets currently selected component. |
void |
setSelectedIndex(int selectedIndex)
Sets index of the selected component. |
void |
setTabPlacement(int tabPlacement)
Sets tab placement. |
void |
setTitleAt(int index,
java.lang.String title)
Sets title of the tab at specified index. |
void |
setToolTipTextAt(int index,
java.lang.String toolTipText)
Sets tool tip text of the tab at specified index. |
void |
setWhatsThisText(int index,
java.lang.String whatsThisText)
Sets what's this text of the tab at specified index. |
void |
validate()
Validates the component. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQContainer |
addImpl, doLayout, getComponent, getComponentCount, getComponentIndex, getComponents, getLayout, getMaximumSize, getMinimumSize, getOwnedComponents, getPreferredSize, pack, remove, remove, removeAll, setBackground, setComponentOrientation, setForeground, updateLocalization |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JQTabbedPane()
public JQTabbedPane(int tabPlacement)
tabPlacement
- the tab placementMethod Detail |
public JQComponent addTab(java.lang.String title, JQComponent component)
title
- the tab titlecomponent
- the tab component
public JQComponent addTab(java.lang.String title, Icon icon, JQComponent component)
title
- the tab titleicon
- the tab iconcomponent
- the tab component
public JQComponent addTab(java.lang.String title, Icon icon, JQComponent component, java.lang.String tooltip)
title
- the tab titleicon
- the tab iconcomponent
- the tab componenttooltip
- the tab tooltip
public JQComponent insertTab(java.lang.String title, Icon icon, JQComponent component, java.lang.String tooltip, int index)
title
- the tab titleicon
- the tab iconcomponent
- the tab componenttooltip
- the tab tooltipindex
- the index
public int getTabPlacement()
public void setTabPlacement(int tabPlacement)
tabPlacement
- the tab placementpublic int getSelectedIndex()
public void setSelectedIndex(int selectedIndex)
selectedIndex
- the selected indexpublic JQComponent getSelectedComponent()
public void setSelectedComponent(JQComponent component)
component
- the component to be selectedpublic boolean isEnabledAt(int index)
index
- the component index
public void setEnabledAt(int index, boolean enabled)
index
- the component indexenabled
- true if enabledpublic java.lang.String getTitleAt(int index)
index
- the component index
public void setTitleAt(int index, java.lang.String title)
index
- the tab indextitle
- the titlepublic java.lang.String getToolTipTextAt(int index)
index
- the tab index
public void setToolTipTextAt(int index, java.lang.String toolTipText)
index
- the tab indextoolTipText
- the tool tip textpublic java.lang.String getWhatsThisText(int index)
index
- the tab index
public void setWhatsThisText(int index, java.lang.String whatsThisText)
index
- the tab indexwhatsThisText
- the what's this textpublic Icon getIconAt(int index)
index
- the tab index
public void setIconAt(int index, Icon icon)
index
- the tab indexicon
- the iconpublic Icon getDisabledIconAt(int index)
index
- the tab index
public void setDisabledAt(int index, Icon icon)
index
- the tab indexicon
- the Disabled iconpublic void setLayout(LayoutManager layoutManager)
setLayout
in class JQContainer
layoutManager
- the layout managerpublic void invalidate()
invalidate
in class JQContainer
public void validate()
validate
in class JQContainer
public JQComponent add(JQComponent component)
add
in class JQContainer
component
- the component to be added
public JQComponent add(JQComponent component, int index)
add
in class JQContainer
component
- the component to be addedindex
- the position at which to insert the component, or -1
to append the component to the end
public JQComponent add(JQComponent component, java.lang.Object constraints)
add
in class JQContainer
component
- the component to be addedconstraints
- the layout constraints
public JQComponent add(JQComponent component, java.lang.Object constraints, int index)
add
in class JQContainer
component
- the component to be addedconstraints
- the layout constraintsindex
- the component index
protected java.lang.String paramString()
paramString
in class JQContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |