org.objectweb.jac.aspects.gui
Interface PanelView

All Superinterfaces:
CompositeView, View, ViewIdentity
All Known Implementing Classes:
Panel, SwingPanelView

public interface PanelView
extends CompositeView


Field Summary
static String LEFT
          The panel is on the left (when 2-3 panels)
static String LOWER
          The panel is on the bottom (when 2-3 panels)
static String LOWER_LEFT
          The panel is on the bottom-left (when 3-4 panels)
static String LOWER_RIGHT
          The panel is on the bottom-right (when 3-4 panels)
static String RIGHT
          The panel is on the right (when 2-3 panels)
static String UPPER
          The panel is on the top (when 2-3 panels)
static String UPPER_LEFT
          The panel is on the top-left (when 3-4 panels)
static String UPPER_RIGHT
          The panel is on the top-right (when 3-4 panels)
 
Method Summary
 void setSplitterLocation(int splitterId, float location)
          Sets a splitter location.
 
Methods inherited from interface org.objectweb.jac.aspects.gui.CompositeView
addHorizontalStrut, addVerticalStrut, addView, addView, containsView, getView, 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
 

Field Detail

UPPER

public static final String UPPER
The panel is on the top (when 2-3 panels)

See Also:
Constant Field Values

LOWER

public static final String LOWER
The panel is on the bottom (when 2-3 panels)

See Also:
Constant Field Values

RIGHT

public static final String RIGHT
The panel is on the right (when 2-3 panels)

See Also:
Constant Field Values

LEFT

public static final String LEFT
The panel is on the left (when 2-3 panels)

See Also:
Constant Field Values

UPPER_LEFT

public static final String UPPER_LEFT
The panel is on the top-left (when 3-4 panels)

See Also:
Constant Field Values

UPPER_RIGHT

public static final String UPPER_RIGHT
The panel is on the top-right (when 3-4 panels)

See Also:
Constant Field Values

LOWER_LEFT

public static final String LOWER_LEFT
The panel is on the bottom-left (when 3-4 panels)

See Also:
Constant Field Values

LOWER_RIGHT

public static final String LOWER_RIGHT
The panel is on the bottom-right (when 3-4 panels)

See Also:
Constant Field Values
Method Detail

setSplitterLocation

public void setSplitterLocation(int splitterId,
                                float location)
Sets a splitter location.

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.

Parameters:
splitterId - the splitter's index
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 components