|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.aspects.gui.web.AbstractView
org.objectweb.jac.aspects.gui.web.AbstractCompositeView
org.objectweb.jac.aspects.gui.web.Tabs
A tabs component.
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
column, context, description, height, isCellViewer, label, parentView, row, table, width |
Constructor Summary | |
Tabs()
|
Method Summary | |
void |
addTab(View component,
String category,
String icon)
Add a view in tab |
void |
addView(View view,
Object extraInfos)
Add a tab |
void |
genHTML(PrintWriter out)
Generate the HTML code for the editor. |
View |
getTab(String tab)
Returns the tab with a given name |
View |
getView(Object id)
Gets a component view from an id object. |
void |
onSelect(int index)
Called when a tab is selected |
void |
select(String tab)
Select a tab. |
protected void |
setSelected(View selected)
Disable editors which are not an the selected tab |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractCompositeView |
add, addHorizontalStrut, addVerticalStrut, addView, close, closeAllViews, containsView, genDescription, genMessage, getViews, removeAllViews, removeView, setContext |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
closeForm, equalsView, equalsView, eventURL, eventURL, genBody, genEventAndActionButton, genPage, genStyleSheets, getBaseURL, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, iconElement, iconElement, isClosed, isDescendantOf, isInForm, openForm, printAttributes, setAttribute, setColumn, setDescription, setFactory, setFocus, setLabel, setMessage, setParameters, setParentView, setRow, setSize, setStyle, setStyleSheet, setTable, setType, setViewBorder, showButton, showFormButtons, showFormButtons |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jac.aspects.gui.CompositeView |
addHorizontalStrut, addVerticalStrut, addView, containsView, getViews, removeAllViews, removeView |
Methods inherited from interface org.objectweb.jac.aspects.gui.View |
close, getContext, getDescription, getFactory, getLabel, getMessage, getParentView, getRootView, getStyle, getViewBorder, isClosed, isDescendantOf, setContext, setDescription, setFactory, setFocus, setLabel, setMessage, setParentView, setSize, setStyle, setViewBorder |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
equalsView, equalsView, getParameters, getType, setParameters, setType |
Methods inherited from interface org.objectweb.jac.aspects.gui.web.HTMLViewer |
setStyleSheet |
Constructor Detail |
public Tabs()
Method Detail |
public void addView(View view, Object extraInfos)
addView
in interface CompositeView
addView
in class AbstractCompositeView
extraInfos
- a String which is the title of the panepublic void addTab(View component, String category, String icon)
TabsView
addTab
in interface TabsView
component
- the view to addcategory
- the name of the tabicon
- the icon of the tabpublic View getView(Object id)
CompositeView
getView
in interface CompositeView
getView
in class AbstractCompositeView
public void select(String tab)
TabsView
select
in interface TabsView
tab
- the name of the tab to selectprotected void setSelected(View selected)
public View getTab(String tab)
tab
- the name of the tabpublic void genHTML(PrintWriter out) throws IOException
HTMLViewer
genHTML
in interface HTMLViewer
genHTML
in class AbstractCompositeView
IOException
public void onSelect(int index)
TabsListener
onSelect
in interface TabsListener
index
- the index of the tab to select
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |