Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2012 JBoss Inc
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package org.uberfire.client.common;
 
This builds on the FormStyleLayout for providing common popup features in a columnar form layout, with a title and a large (ish) icon.
 
 public class FormStylePopup extends Popup {
 
     protected FormStyleLayout form;
 
     public FormStylePopupfinal Image image,
                            final String title ) {
         setupimagetitle );
     }
 
     protected void setupfinal Image image,
                           final String title ) {
          = new FormStyleLayoutimagetitle );
 
         setModaltrue );
 
         setTitletitle );
     }
 
     public FormStylePopupfinal Image image,
                            final String title,
                            final Integer width ) {
         thisimagetitle );
         setWidthwidth + "px" );
     }
 
     public FormStylePopupfinal ImageResource image,
                            final String title ) {
 
         setupimagetitle );
     }
 
     protected void setupfinal ImageResource image,
                         final String title ) {
          = new FormStyleLayoutimagetitle );
 
         setModaltrue );
 
         setTitletitle );
     }
 
     public FormStylePopup() {
          = new FormStyleLayout();
     }
 
     public FormStylePopupImageResource image,
                            final String title,
                            Integer width ) {
         thisimage,
               title );
         setWidthwidth + "px" );
     }
 
     @Override
     public Widget getContent() {
         return ;
     }
 
     public void clear() {
         this..clear();
     }
 
     public int addAttributeString label,
                              IsWidget wid ) {
         return .addAttributelabel,
                                   wid );
     }
 
     public int addAttributeString label,
                              Widget wid,
                              boolean isVisible ) {
         return .addAttributelabel,
                                   wid,
                                  isVisible );
    }
    public int addRowWidget wid ) {
        return .addRowwid );
    }

    
Set the visibility of an Attribute

Parameters:
row
isVisible
    public void setAttributeVisibilityint row,
                                        boolean isVisible ) {
        .setAttributeVisibilityrowisVisible );
    }
New to GrepCode? Check out our FAQ X