Package org.ngengine.gui.win
Class NWindow<T>
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.simsilica.lemur.Panel
com.simsilica.lemur.Container
org.ngengine.gui.win.NWindow<T>
- All Implemented Interfaces:
HasLocalTransform,CloneableSmartAsset,Collidable,Savable,JmeCloneable,GuiControlListener,GuiUpdateListener,Cloneable
- Direct Known Subclasses:
AuthSelectionWindow,NConfirmDialogWindow,NErrorWindow,NHud,Nip07AuthWindow,Nip46AuthWindow,Nip46ChallengeWindow,NsecAuthWindow,StoredAuthSelectionWindow
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode -
Field Summary
FieldsFields inherited from class com.simsilica.lemur.Panel
EFFECT_CLOSE, EFFECT_OPEN, LAYER_BACKGROUND, LAYER_BORDER, LAYER_INSETSFields inherited from class com.jme3.scene.Spatial
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localOverrides, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_CHILD_LIGHTLIST, RF_GLOBAL_LIGHTS, RF_LIGHTLIST, RF_MATPARAM_OVERRIDE, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldOverrides, worldTransform -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddWindowListener(NWindowListener listener) final voidclose()protected abstract voidfinal voidfocusGained(GuiControl source) final voidfocusLost(GuiControl source) protected NPanelprotected final NWindowManagerComponentfinal voidguiUpdate(GuiControl source, float tpf) protected final voidbooleanbooleanvoidonAction(int id) protected final voidonHide()protected final voidonShow()protected voidpreCompose(Vector3f size, T args) protected final booleanfinal voidremoveWindowListener(NWindowListener listener) final voidreshape(GuiControl source, Vector3f pos, Vector3f size) final voidsetBackAction(Consumer<NWindow<T>> backAction) final voidsetCenter(boolean center) final voidsetFitContent(boolean fitContent) voidsetFullscreen(boolean fullscreen) final voidvoidsetWithTitleBar(boolean withTitleBar) Methods inherited from class com.simsilica.lemur.Container
addChild, clearChildren, detachChildAt, getLayout, removeChild, setLayout, toStringMethods inherited from class com.simsilica.lemur.Panel
addEffect, addMouseListener, getAlpha, getBackground, getBorder, getEffectControl, getEffects, getElementId, getInsets, getInsetsComponent, getPreferredSize, getSize, getStyle, hasEffect, removeEffect, removeMouseListener, runEffect, setAlpha, setAlpha, setBackground, setBorder, setChildAlpha, setEffects, setInsets, setInsetsComponent, setPreferredSize, setSizeMethods inherited from class com.jme3.scene.Node
attachChild, attachChildAt, breadthFirstTraversal, clone, cloneFields, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, read, setLightListRefresh, setLodLevel, setMaterial, setMatParamOverrideRefresh, setModelBound, setParent, setTransformRefresh, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBound, writeMethods inherited from class com.jme3.scene.Spatial
addControl, addControlAt, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, depthFirstTraversal, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalMatParamOverrides, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldMatParamOverrides, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, hasGlobalLights, jmeClone, localToWorld, lookAt, matches, move, move, oldClone, removeControl, removeControl, removeFromParent, removeLight, removeMatParamOverride, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setRequiresUpdates, setShadowMode, setUserData, updateMatParamOverrides, updateWorldLightList, updateWorldTransforms, worldToLocal
-
Field Details
-
ELEMENT_ID
- See Also:
-
initStage
protected int initStage
-
-
Constructor Details
-
NWindow
protected NWindow() -
NWindow
-
NWindow
-
-
Method Details
-
setFullscreen
public void setFullscreen(boolean fullscreen) -
isFullscreen
public boolean isFullscreen() -
isWithTitleBar
public boolean isWithTitleBar() -
setWithTitleBar
public void setWithTitleBar(boolean withTitleBar) -
setFitContent
public final void setFitContent(boolean fitContent) -
addWindowListener
-
removeWindowListener
-
compose
- Throws:
Throwable
-
onShow
protected final void onShow() -
onHide
protected final void onHide() -
setCenter
public final void setCenter(boolean center) -
getManager
-
getContent
-
setTitle
-
setBackAction
-
reshape
- Specified by:
reshapein interfaceGuiControlListener
-
focusGained
- Specified by:
focusGainedin interfaceGuiControlListener
-
focusLost
- Specified by:
focusLostin interfaceGuiControlListener
-
invalidate
protected final void invalidate() -
preCompose
- Throws:
Throwable
-
reloadNow
protected final boolean reloadNow() -
guiUpdate
- Specified by:
guiUpdatein interfaceGuiUpdateListener
-
close
public final void close() -
onAction
public void onAction(int id)
-