com.sibvisions.rad.ui.qt.impl.container
Class QtDesktopPanel

java.lang.Object
  extended by com.sibvisions.rad.ui.qt.impl.QtResource<C>
      extended by com.sibvisions.rad.ui.qt.impl.QtComponentBase<C>
          extended by com.sibvisions.rad.ui.qt.impl.QtComponent<C>
              extended by com.sibvisions.rad.ui.qt.impl.QtContainer<QMdiArea>
                  extended by com.sibvisions.rad.ui.qt.impl.container.QtDesktopPanel
All Implemented Interfaces:
IDesktopPanel, IAlignmentConstants, IComponent, IContainer, IResource

public class QtDesktopPanel
extends QtContainer<QMdiArea>
implements IDesktopPanel

The QtDesktopPanel is the IDesktopPanel implementation for QT.

See Also:
QMdiArea, IDesktopPanel

Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent
parent
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase
factory
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource
resource
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
QtDesktopPanel()
          Creates a new instance of QtDesktopPanel.
 
Method Summary
protected  void addIntern(IComponent pComponent, Object pConstraints, int pIndex)
          Internal function, for adding physical component and supporting layers.
 IColor getBackground()
          Gets the background color of this component.
 boolean isBackgroundSet()
          Returns whether the background color has been explicitly set for this Component. If this method returns false, this Component is inheriting its background color from an ancestor.
 boolean isNavigationKeysEnabled()
          Not supported.
 boolean isTabMode()
          Gets the display mode of the desktop.
protected  void removeIntern(IComponent pComponent)
          Internal function, for adding physical component and supporting layers.
 void setBackground(IColor pBackground)
          Sets the background color of this component.

The background color affects each component differently and the parts of the component that are affected by the background color may differ between operating systems.

protected  void setLayoutIntern(ILayout pLayout)
          Internal function, for setting the layout.
 void setNavigationKeysEnabled(boolean pEnabled)
          Not supported.
 void setTabMode(boolean pTabMode)
          Sets the display mode of the desktop to show tabs instead of frames.
 
Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtContainer
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout
 
Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent
addStyle, capture, getBounds, getCursor, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyleSheet, getToolTipText, getVerticalAlignment, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, requestFocus, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setHorizontalAlignment, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setResourceVisible, setSize, setToolTipText, setVerticalAlignment
 
Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase
eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getFactory, isVisible, setFactory, setVisible
 
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.IContainer
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Constructor Detail

QtDesktopPanel

public QtDesktopPanel()
Creates a new instance of QtDesktopPanel.

Method Detail

setTabMode

public void setTabMode(boolean pTabMode)
Sets the display mode of the desktop to show tabs instead of frames.

Specified by:
setTabMode in interface IDesktopPanel
Parameters:
pTabMode - true to frames as tabs; false to frames

isTabMode

public boolean isTabMode()
Gets the display mode of the desktop.

Specified by:
isTabMode in interface IDesktopPanel
Returns:
true if the desktop shows tabs instead of frames, or false if the desktop shows internal frames

setNavigationKeysEnabled

public void setNavigationKeysEnabled(boolean pEnabled)
Not supported.

Specified by:
setNavigationKeysEnabled in interface IDesktopPanel
Parameters:
pEnabled - true to enable the navigation with the keyboard, otherwise false
See Also:
IDesktopPanel.setNavigationKeysEnabled(boolean)

isNavigationKeysEnabled

public boolean isNavigationKeysEnabled()
Not supported.

Specified by:
isNavigationKeysEnabled in interface IDesktopPanel
Returns:
false
See Also:
IDesktopPanel.isNavigationKeysEnabled()

setBackground

public void setBackground(IColor pBackground)
Sets the background color of this component.

The background color affects each component differently and the parts of the component that are affected by the background color may differ between operating systems.

Specified by:
setBackground in interface IComponent
Overrides:
setBackground in class QtComponent<QMdiArea>
Parameters:
pBackground - the color to become this component's color; if this parameter is null, then this component will inherit the background color of its parent
See Also:
IComponent.getBackground()

getBackground

public IColor getBackground()
Gets the background color of this component.

Specified by:
getBackground in interface IComponent
Overrides:
getBackground in class QtComponent<QMdiArea>
Returns:
this component's background color; if this component does not have a background color, the background color of its parent is returned
See Also:
IComponent.setBackground(javax.rad.ui.IColor)

isBackgroundSet

public boolean isBackgroundSet()
Returns whether the background color has been explicitly set for this Component. If this method returns false, this Component is inheriting its background color from an ancestor.

Specified by:
isBackgroundSet in interface IComponent
Overrides:
isBackgroundSet in class QtComponent<QMdiArea>
Returns:
true if the background color has been explicitly set for this Component; false otherwise.

setLayoutIntern

protected void setLayoutIntern(ILayout pLayout)
Internal function, for setting the layout.

Overrides:
setLayoutIntern in class QtContainer<QMdiArea>
Parameters:
pLayout - the layout

addIntern

protected void addIntern(IComponent pComponent,
                         Object pConstraints,
                         int pIndex)
Internal function, for adding physical component and supporting layers.

Overrides:
addIntern in class QtContainer<QMdiArea>
Parameters:
pComponent - the Component to be added
pConstraints - an object expressing layout contraints for this
pIndex - the position in the container's list at which to insert the Component; -1 means insert at the end component
See Also:
QtContainer.add(IComponent, Object, int)

removeIntern

protected void removeIntern(IComponent pComponent)
Internal function, for adding physical component and supporting layers.

Overrides:
removeIntern in class QtContainer<QMdiArea>
Parameters:
pComponent - the Component to be removed
See Also:
QtContainer.remove(int)


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.