com.sibvisions.rad.ui.qt.impl.layout
Class QtBorderLayout

java.lang.Object
  extended by com.sibvisions.rad.ui.qt.impl.QtResource<QVxBorderLayout>
      extended by com.sibvisions.rad.ui.qt.impl.layout.QtBorderLayout
All Implemented Interfaces:
IQtLayout, ILayout<String>, IResource, IBorderLayout

public class QtBorderLayout
extends QtResource<QVxBorderLayout>
implements IBorderLayout, IQtLayout

The QtBorderLayout is the IBorderLayout implementation for QT.

See Also:
QVxBorderLayout, IBorderLayout

Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource
resource
 
Fields inherited from interface javax.rad.ui.layout.IBorderLayout
CENTER, EAST, NORTH, SOUTH, WEST
 
Constructor Summary
QtBorderLayout()
          Creates a new instance of QtBorderLayout based on an IBorderLayout implementation.
 
Method Summary
 void addComponent(IComponent pComponent, Object pConstraints)
          Adds a component to the layout.
 String getConstraints(IComponent pComponent)
          Gets the constraints for the specified IComponent.
 int getHorizontalGap()
          Returns the horizontal gap between components.
 IInsets getMargins()
          Gets the margins.
 int getVerticalGap()
          Returns the vertical gap between components.
 void removeComponent(IComponent pComponent)
          Removes a componentn from the layout.
 void setConstraints(IComponent pComponent, String pConstraints)
          Gets the constraints for the specified IComponent.
 void setHorizontalGap(int pHorizontalGap)
          Sets the horizontal gap between components.
 void setMargins(IInsets pMargins)
          Sets the margins.
 void setVerticalGap(int pVerticalGap)
          Sets the vertical gap between components.
 
Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtResource
equals, getResource, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

QtBorderLayout

public QtBorderLayout()
Creates a new instance of QtBorderLayout based on an IBorderLayout implementation.

See Also:
IBorderLayout
Method Detail

setMargins

public void setMargins(IInsets pMargins)
Sets the margins.

Specified by:
setMargins in interface ILayout<String>
Parameters:
pMargins - the margins.

getMargins

public IInsets getMargins()
Gets the margins.

Specified by:
getMargins in interface ILayout<String>
Returns:
the margins.

setHorizontalGap

public void setHorizontalGap(int pHorizontalGap)
Sets the horizontal gap between components.

Specified by:
setHorizontalGap in interface ILayout<String>
Parameters:
pHorizontalGap - the horizontal gap between components.

getHorizontalGap

public int getHorizontalGap()
Returns the horizontal gap between components.

Specified by:
getHorizontalGap in interface ILayout<String>
Returns:
returns the horizontal gap between components.

getVerticalGap

public int getVerticalGap()
Returns the vertical gap between components.

Specified by:
getVerticalGap in interface ILayout<String>
Returns:
returns the vertical gap between components.

setVerticalGap

public void setVerticalGap(int pVerticalGap)
Sets the vertical gap between components.

Specified by:
setVerticalGap in interface ILayout<String>
Parameters:
pVerticalGap - the vertical gap between components

getConstraints

public String getConstraints(IComponent pComponent)
Gets the constraints for the specified IComponent.

Specified by:
getConstraints in interface ILayout<String>
Parameters:
pComponent - the IComponent to be queried
Returns:
the constraint for the specified IComponent, or null if component is null or is not present in this layout

setConstraints

public void setConstraints(IComponent pComponent,
                           String pConstraints)
Gets the constraints for the specified IComponent.

Specified by:
setConstraints in interface ILayout<String>
Parameters:
pComponent - the IComponent to be queried
pConstraints - the constraint for the specified IComponent, or null if component is null or is not present in this layout

addComponent

public void addComponent(IComponent pComponent,
                         Object pConstraints)
Adds a component to the layout.

Specified by:
addComponent in interface IQtLayout
Parameters:
pComponent - the component
pConstraints - the constraints

removeComponent

public void removeComponent(IComponent pComponent)
Removes a componentn from the layout.

Specified by:
removeComponent in interface IQtLayout
Parameters:
pComponent - the component


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.