|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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)
Adds a component view in the composite. |
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, genDescription, genMessage, getViews, removeAllViews, removeView, setContext |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
equals, eventURL, eventURL, genBody, genPage, genStyleSheets, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, hashCode, iconElement, iconElement, isClosed, isDescendantOf, isInForm, printAttributes, setAttribute, setColumn, setDescription, setFactory, setFocus, setHeight, setLabel, setMessage, setParameters, setParentView, setRow, setStyle, setStyleSheet, setTable, setType, setViewBorder, setWidth, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.jac.aspects.gui.CompositeView |
addHorizontalStrut, addVerticalStrut, addView, 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, setHeight, setLabel, setMessage, setParentView, setStyle, setViewBorder, setWidth, validate |
Methods inherited from interface org.objectweb.jac.aspects.gui.ViewIdentity |
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)
CompositeView
addView
in interface CompositeView
addView
in class AbstractCompositeView
view
- the component viewextraInfos
- some positionning infos on where the component
should be added in the compositepublic 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
out
- the writer where to write the HTML code.
IOException
public void onSelect(int index)
TabsListener
onSelect
in interface TabsListener
index
- the index of the tab to select
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |