|
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.Panel
Field Summary |
Fields inherited from class org.objectweb.jac.aspects.gui.web.AbstractView |
column, context, description, height, isCellViewer, label, parentView, row, table, width |
Fields inherited from interface org.objectweb.jac.aspects.gui.PanelView |
LEFT, LOWER, LOWER_LEFT, LOWER_RIGHT, RIGHT, UPPER, UPPER_LEFT, UPPER_RIGHT |
Constructor Summary | |
Panel(ViewFactory factory,
int subPanesCount,
int geometry,
Map paneContainers,
boolean[] scrollings,
Map splitterLocations)
|
Method Summary | |
void |
addView(View component,
Object extraInfo)
Adds a view. |
void |
close()
Close this view. |
protected void |
construct()
|
void |
genHTML(PrintWriter out)
Generate the HTML code for the editor. |
protected float |
getSplitterLocation(int splitId)
Returns a splitter's loctation as a percentage between 0 and 100. |
View |
getView(Object id)
Gets a component view from an id object. |
Collection |
getViews()
Gets all the component views in this composite. |
void |
removeAllViews()
Removes all the views in this composite. |
void |
setSplitterLocation(int splitId,
float location)
Sets a splitter location. |
Methods inherited from class org.objectweb.jac.aspects.gui.web.AbstractCompositeView |
add, addHorizontalStrut, addVerticalStrut, addView, genDescription, genMessage, 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, removeView |
Methods inherited from interface org.objectweb.jac.aspects.gui.View |
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 Panel(ViewFactory factory, int subPanesCount, int geometry, Map paneContainers, boolean[] scrollings, Map splitterLocations)
Method Detail |
protected void construct()
public void setSplitterLocation(int splitId, float location)
PanelView
The splitter is referenced by its index going from the front-end splitter to the back-end splitters. For instance, in the case of a 3 sub-panel window, the 0 index references the splitter that splits the main window in two, the 1 index, the one that splits the half-window in two other smaller parts.
setSplitterLocation
in interface PanelView
location
- the position in pixel, regarding to the top/left
component, a negative value means that the splitter should be
set at the preferred sized of the inner componentsprotected float getSplitterLocation(int splitId)
public void addView(View component, Object extraInfo)
addView
in interface CompositeView
addView
in class AbstractCompositeView
component
- the view to addextraInfo
- some positionning infos on where the component
should be added in the compositepublic Collection getViews()
CompositeView
getViews
in interface CompositeView
getViews
in class AbstractCompositeView
public View getView(Object id)
CompositeView
getView
in interface CompositeView
getView
in class AbstractCompositeView
public void close()
View
close
in interface View
close
in class AbstractCompositeView
public void removeAllViews()
CompositeView
removeAllViews
in interface CompositeView
removeAllViews
in class AbstractCompositeView
public 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
|
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 |