Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jac.aspects.gui.web
Class Tabs  view Tabs download Tabs.java

java.lang.Object
  extended byjac.aspects.gui.web.AbstractView
      extended byjac.aspects.gui.web.AbstractCompositeView
          extended byjac.aspects.gui.web.Tabs
All Implemented Interfaces:
jac.aspects.gui.CompositeView, HTMLViewer, TabsListener, jac.aspects.gui.TabsView, jac.aspects.gui.View

public class Tabs
extends AbstractCompositeView
implements TabsListener, jac.aspects.gui.TabsView

A tabs component.


Field Summary
(package private)  java.util.Vector icons
           
(package private)  jac.aspects.gui.View selected
           
(package private)  java.util.Vector tabs
           
 
Fields inherited from class jac.aspects.gui.web.AbstractCompositeView
components
 
Fields inherited from class jac.aspects.gui.web.AbstractView
closed, column, context, description, factory, height, isCellViewer, javascript, label, message, parameters, parentView, row, style, styleSheet, table, type, viewBorder, width
 
Constructor Summary
Tabs()
           
 
Method Summary
 void addTab(jac.aspects.gui.View component, java.lang.String category, java.lang.String icon)
          Add a view in tab
 void addView(jac.aspects.gui.View view, java.lang.Object extraInfos)
          Adds a component view in the composite.
 void genHTML(java.io.PrintWriter out)
          Generate the HTML code for the editor.
 jac.aspects.gui.View getTab(java.lang.String tab)
          Returns the tab with a given name
 jac.aspects.gui.View getView(java.lang.Object id)
          Gets a component view from an id object.
 void onSelect(int index)
          Called when a tab is selected
 void select(java.lang.String tab)
          Select a tab.
 
Methods inherited from class jac.aspects.gui.web.AbstractCompositeView
add, addHorizontalStrut, addVerticalStrut, addView, close, genDescription, genMessage, getViews, removeAllViews, removeView, setContext
 
Methods inherited from class jac.aspects.gui.web.AbstractView
equals, eventURL, eventURL, genBody, genPage, getCloseBorder, getContext, getDescription, getFactory, getId, getId, getLabel, getMessage, getOpenBorder, getParameters, getParentView, getRootView, getStyle, getType, getViewBorder, iconElement, iconElement, isClosed, isInForm, 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, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jac.aspects.gui.CompositeView
addHorizontalStrut, addVerticalStrut, addView, getViews, removeAllViews, removeView
 
Methods inherited from interface jac.aspects.gui.View
close, getParentView, getSubstance, refreshView, refreshViewItem, setFocus
 
Methods inherited from interface jac.aspects.gui.web.HTMLViewer
setStyleSheet
 

Field Detail

tabs

java.util.Vector tabs

icons

java.util.Vector icons

selected

jac.aspects.gui.View selected
Constructor Detail

Tabs

public Tabs()
Method Detail

addView

public void addView(jac.aspects.gui.View view,
                    java.lang.Object extraInfos)
Description copied from interface: jac.aspects.gui.CompositeView
Adds a component view in the composite.

Specified by:
addView in interface jac.aspects.gui.CompositeView
Overrides:
addView in class AbstractCompositeView

addTab

public void addTab(jac.aspects.gui.View component,
                   java.lang.String category,
                   java.lang.String icon)
Description copied from interface: jac.aspects.gui.TabsView
Add a view in tab

Specified by:
addTab in interface jac.aspects.gui.TabsView

getView

public jac.aspects.gui.View getView(java.lang.Object id)
Description copied from interface: jac.aspects.gui.CompositeView
Gets a component view from an id object.

Specified by:
getView in interface jac.aspects.gui.CompositeView
Overrides:
getView in class AbstractCompositeView

select

public void select(java.lang.String tab)
Description copied from interface: jac.aspects.gui.TabsView
Select a tab.

Specified by:
select in interface jac.aspects.gui.TabsView

getTab

public jac.aspects.gui.View getTab(java.lang.String tab)
Returns the tab with a given name


genHTML

public void genHTML(java.io.PrintWriter out)
             throws java.io.IOException
Description copied from interface: HTMLViewer
Generate the HTML code for the editor.

Specified by:
genHTML in interface HTMLViewer
Overrides:
genHTML in class AbstractCompositeView

onSelect

public void onSelect(int index)
Description copied from interface: TabsListener
Called when a tab is selected

Specified by:
onSelect in interface TabsListener