Example #1
0
 public void applyProperty(final CPlatformWindow c, final Object value) {
   boolean fullscrenable = Boolean.parseBoolean(value.toString());
   if (c.target instanceof RootPaneContainer
       && c.getPeer().getPeerType() == PeerType.FRAME) {
     if (c.isInFullScreen && !fullscrenable) {
       c.toggleFullScreen();
     }
   }
   c.setStyleBits(FULLSCREENABLE, fullscrenable);
 }
Example #2
0
 public void applyProperty(final CPlatformWindow c, final Object value) {
   c.setStyleBits(
       HAS_SHADOW, value == null ? true : Boolean.parseBoolean(value.toString()));
 }
Example #3
0
 public void applyProperty(final CPlatformWindow c, final Object value) {
   c.setStyleBits(CLOSEABLE, Boolean.parseBoolean(value.toString()));
 }
Example #4
0
 public void applyProperty(final CPlatformWindow c, final Object value) {
   c.setStyleBits(
       DOCUMENT_MODIFIED,
       value == null ? false : Boolean.parseBoolean(value.toString()));
 }