public interface AttributeWriteVisibleAdvanced extends AttributeWriteVisible, AttributeReadVisibleRecursive
visibility
of an object.setVisible(boolean)
Modifier and Type | Method and Description |
---|---|
AttributeWriteFlagAdvanced |
getVisibleFlag()
This method gets advanced visibility support.
|
boolean |
isVisible()
This method determines if this object is
set to
visible. |
void |
setVisible(boolean visible)
This method shows or hides this object.
|
void |
setVisible(boolean visible,
boolean programmatic)
This method shows or hides this object.
|
isVisibleRecursive
AttributeWriteFlagAdvanced getVisibleFlag()
boolean
attribute or property.
However, this is leading to various problems if you have multiple aspects that influence the flag. E.g.
assume you have some dynamic effect that is showing or hiding a widget. Additionally the widget is in a
collapsable section, tab-panel, or the like that is also showing or hiding the widget. Further, there
might be an authorization in your application as a cross-cutting concern that hides widgets from the UI
according to the current roles and permissions of the user. If this is all based on a simple boolean flag
you will end up in a mess and with a buggy application. So the dynamic effect or even worse the
authorization will hide the widget but after the user collapses and then expands a panel it becomes
visible again. You do not want to deal with bugs like this. isVisible()
for reading visibility.mutable flag
for advanced visibility support.boolean isVisible()
set
to
visible.
getVisibleFlag()
.getFlag()
. If you want
to read the value that has been set via setVisible(boolean)
you would need to do
getVisibleFlag()
.getFlag(null)
instead. See getVisibleFlag()
for more information.isVisible
in interface AttributeReadVisible
true
if programmatically set visible, false
if directly
programmatically hidden.AttributeReadVisibleRecursive.isVisibleRecursive()
void setVisible(boolean visible)
isVisible()
. It is an efficient shortcut for
getVisibleFlag()
.setFlag(visible, null)
.setVisible
in interface AttributeWriteVisible
visible
- is the new visibility status of this object. If true
, the object will be
shown (and raised), if false the object will be hidden (iconified).isVisible()
void setVisible(boolean visible, boolean programmatic)
visible
- is the new visibility status of this object. If true
, the object will be
shown (and raised), if false the object will be hidden (iconified).programmatic
- - see UiEvent.isProgrammatic()
.isVisible()
Copyright © 2001–2016 mmm-Team. All rights reserved.