Package net.xoetrope.xui.style

Examples of net.xoetrope.xui.style.XStyleEx


    try {
      XmlElement regRoot = XmlSource.read( reader );

      String validationStyle = regRoot.getAttribute( "style" );
      if ( validationStyle != null ) {
        XStyleEx exStyle = (XStyleEx)currentProject.getStyleManager().getStyle( validationStyle );
        Color[] colors = new Color[ 3 ];
        colors[ 0 ] = (Color)exStyle.getStyleAsColor( "colornormal" );
        colors[ 1 ] = (Color)exStyle.getStyleAsColor( "colorwarn" );
        colors[ 2 ] = (Color)exStyle.getStyleAsColor( "colorfail" );
        XBaseValidator.setValidationColors( colors );
      }

      Enumeration e = regRoot.getChildren().elements();
      validations = new Hashtable();
View Full Code Here


    // Style the panel
    XStyleManager sm = currentProject.getStyleManager();
    if ( sm.hasStyle( "dockingApp" )) {
      XStyle dockingStyle = sm.getStyle( "dockingApp" );
      multiSplitPane.setBackground( dockingStyle.getStyleAsColor( XStyle.COLOR_BACK ));
      XStyleEx exStyle = (XStyleEx)dockingStyle;
      int idx = exStyle.getStyleIndex( "padding" );
      if ( idx > 0 ) {
        int padding = new Integer( exStyle.getStyleValue( idx ).toString()).intValue();
          multiSplitPane.setDividerSize( padding );
      }
    }

    // Apply styles to the sidebars
View Full Code Here

    // Style the panel
    XStyleManager sm = currentProject.getStyleManager();
    if ( sm.hasStyle( "dockingPanel" )) {
      XStyle dockingStyle = sm.getStyle( "dockingPanel" );
      if ( dockingStyle instanceof XStyleEx ) {
        XStyleEx exStyle = (XStyleEx)dockingStyle;
        int idx = exStyle.getStyleIndex( "border" );
        if ( idx > 0 ) {
          Color borderColor = dockingStyle.getStyleAsColor( XStyle.COLOR_FORE );
          Object obj = exStyle.getStyleValue( idx );
          if ( obj != null ) {
            String borderStyle = (String)obj.toString();
            if ( "1".equals( borderStyle ))           
              setBorder( new XRoundOnTopBorder( borderColor ));
          }
View Full Code Here

TOP

Related Classes of net.xoetrope.xui.style.XStyleEx

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.