|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.qt.impl.QtResource<C>
com.sibvisions.rad.ui.qt.impl.QtComponentBase<C>
C - the component typepublic abstract class QtComponentBase<C extends QObject>
The ComponentEventFilter handles the events from the resource and
sends important events to the listeners.
| Field Summary | |
|---|---|
protected IFactory |
factory
The factory that created this component. |
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
resource |
| Constructor Summary | |
|---|---|
protected |
QtComponentBase(C pResource)
Creates an encapsulated instance of QtResource with
the specified type R. |
| Method Summary | |
|---|---|
KeyHandler |
eventKeyPressed()
The EventHandler for the key pressed event. |
KeyHandler |
eventKeyReleased()
The EventHandler for the key released event. |
KeyHandler |
eventKeyTyped()
The EventHandler for the key typed event. |
MouseHandler |
eventMouseClicked()
The EventHandler for the mouse clicked event. |
MouseHandler |
eventMouseEntered()
The EventHandler for the mouse entered event. |
MouseHandler |
eventMouseExited()
The EventHandler for the mouse exited event. |
MouseHandler |
eventMousePressed()
The EventHandler for the mouse pressed event. |
MouseHandler |
eventMouseReleased()
The EventHandler for the mouse released event. |
IFactory |
getFactory()
Gets the factory that created this NamedObject. |
boolean |
isVisible()
Determines whether this component should be visible when its parent is visible. |
void |
setFactory(IFactory pFactory)
Sets the components factory implementation. |
protected abstract void |
setResourceVisible(boolean pVisible)
Sets the visibility of the internal resource. |
void |
setVisible(boolean pVisible)
Shows or hides this component depending on the value of parameter b. |
| 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.IComponent |
|---|
capture, getBackground, getBounds, getCursor, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Field Detail |
|---|
protected IFactory factory
| Constructor Detail |
|---|
protected QtComponentBase(C pResource)
QtResource with
the specified type R.
pResource - base resource| Method Detail |
|---|
public IFactory getFactory()
getFactory in interface IComponentpublic boolean isVisible()
Frame objects.
isVisible in interface IComponenttrue if the component is visible,
false otherwiseIComponent.setVisible(boolean)public void setVisible(boolean pVisible)
b.
setVisible in interface IComponentpVisible - if true, shows this component; otherwise,
hides this componentIComponent.isVisible()public MouseHandler eventMousePressed()
eventMousePressed in interface IComponentpublic MouseHandler eventMouseReleased()
eventMouseReleased in interface IComponentpublic MouseHandler eventMouseClicked()
eventMouseClicked in interface IComponentpublic MouseHandler eventMouseEntered()
eventMouseEntered in interface IComponentpublic MouseHandler eventMouseExited()
eventMouseExited in interface IComponentpublic KeyHandler eventKeyPressed()
eventKeyPressed in interface IComponentpublic KeyHandler eventKeyReleased()
eventKeyReleased in interface IComponentpublic KeyHandler eventKeyTyped()
eventKeyTyped in interface IComponentprotected abstract void setResourceVisible(boolean pVisible)
pVisible - true to set visible, otherwise falsepublic void setFactory(IFactory pFactory)
pFactory - the IFactoryQtFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||