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

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

public class QtNullLayout
extends QtResource<QVxNullLayout>
implements ILayout<Object>, IQtLayout

The QtNullLayout is the a null layout for QT.

See Also:
QVxNullLayout

Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource
resource
 
Constructor Summary
QtNullLayout()
          Creates a new instance of QtNullLayout.
 
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, Object 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

QtNullLayout

public QtNullLayout()
Creates a new instance of QtNullLayout.

Method Detail

getMargins

public IInsets getMargins()
Gets the margins.

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

setMargins

public void setMargins(IInsets pMargins)
Sets the margins.

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

getHorizontalGap

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

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

setHorizontalGap

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

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

getVerticalGap

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

Specified by:
getVerticalGap in interface ILayout<Object>
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<Object>
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<Object>
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,
                           Object pConstraints)
Gets the constraints for the specified IComponent.

Specified by:
setConstraints in interface ILayout<Object>
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.