Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2012 JBoss Inc
   * 
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   * use this file except in compliance with the License. You may obtain a copy of
   * the License at
   * 
   * http://www.apache.org/licenses/LICENSE-2.0
   * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
  */
 package org.uberfire.workbench.model;
 
 import java.util.List;
 import java.util.Set;

A Panel in the Workbench.
 
 public interface PanelDefinition {

    
Add a Part to the Panel If the part is linked to an existing panel, it will be removed from this panel by a call to removePart(part)

Parameters:
part The Part to add
 
     public void addPartfinal PartDefinition part );

    
Remove a Part from the Panel

Parameters:
part The Part to be removed
 
     public void removePartfinal PartDefinition part );

    
Get the Parts contained in the Panel

Returns:
The parts
 
     public Set<PartDefinitiongetParts();

    
Get all of this Panel's immediate child Panels (i.e. not recursive).

Returns:
All children
 
     public List<PanelDefinitiongetChildren();

    
Insert a Panel as an immediate child at the given Position. If this Panel already has a child at the specified position the existing Panel at that position becomes a child of the Panel being added at the same Position.

Parameters:
position The Position to add the child
panel The child Panel
 
     public void insertChildfinal Position position,
                              final PanelDefinition panel );

    
Append a Panel at the first empty child position. If this Panel already has a child at the specified position the descendants are followed until an empty position is found.

Parameters:
position The Position to add the child
panel The child Panel
 
     public void appendChildfinal Position position,
                              final PanelDefinition panel );

    
Append a Panel at the first empty child position. If this Panel already has a child at the specified position the descendants are followed until an empty position is found.

Parameters:
panel The child Panel
 
     public void appendChild(
             final PanelDefinition panel );

    
Get the Panel's immediate child Panel at the given Position

Parameters:
position The child Panel's Position
Returns:
The child Panel or null, if a child does not exist at the given Position
 
     public PanelDefinition getChildfinal Position position );

    
Remove a child from the Panel

Parameters:
position
 
     public void removeChildfinal Position position );

    
Is this Panel the root of the Perspective definition

Returns:
True if the Panel is the root
 
    public boolean isRoot();

    
Get the type of the Panel

Returns:
The panel type
    public PanelType getPanelType();
    public PanelType getDefaultChildPanelType();

    
Get the height of the Panel in pixels

Returns:
The height, or null if not set
    public Integer getHeight();

    
Set the height of the Panel in pixels

Parameters:
height The height, or null if not set
    public void setHeightInteger height );

    
Get the width of the Panel in pixels

Returns:
The width, or null if not set
    public Integer getWidth();

    
Set the width of the Panel in pixels

Parameters:
width The width, or null if not set
    public void setWidthInteger width );

    
Get the minimum height of the Panel in pixels

Returns:
The minimum height, or null if not set
    public Integer getMinHeight();

    
Set the minimum height of the Panel in pixels

Parameters:
minHeight The minimum height, or null if not set
    public void setMinHeightInteger minHeight );

    
Get the minimum width of the Panel in pixels

Returns:
The minimum width, or null if not set
    public Integer getMinWidth();

    
Set the minimum width of the Panel in pixels

Parameters:
minWidth The width, or null if not set
    public void setMinWidthInteger minWidth );

    
Get the Position of the Panel relate to it's Parent

Returns:
The Position of the Panel
    public Position getPosition();

    
Set the Position of the Panel relative to it's parent.

Parameters:
position The Position of the Panel relative to it's parent
    public void setPositionPosition position );

    
Has the Panel been collapsed to a minimal size

Returns:
true If minimized
    public boolean isMinimized();

    
Has the Panel been expanded to a maximum size

Returns:
true If maximized
    public boolean isMaximized();
    void setContextDefinitionfinal ContextDefinition contextDefinition );
    void setContextDisplayModefinal ContextDisplayMode contextDisplayMode );
New to GrepCode? Check out our FAQ X