001/*
002 * ModeShape (http://www.modeshape.org)
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *       http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.modeshape.web.client;
017
018import com.smartgwt.client.types.Alignment;
019import com.smartgwt.client.types.VerticalAlignment;
020import com.smartgwt.client.widgets.Img;
021import com.smartgwt.client.widgets.Label;
022import com.smartgwt.client.widgets.layout.HLayout;
023import com.smartgwt.client.widgets.layout.VLayout;
024
025/**
026 *
027 * @author kulikov
028 */
029public class Footer extends VLayout {
030    
031    public Footer() {
032        super();
033        HLayout band = new HLayout();
034        band.setHeight(50);
035        band.setBackgroundColor("#424242");
036        
037        addMember(band);
038        
039        Img logo = new Img();
040        logo.setSrc("icons/rht.png");
041
042        logo.setHeight(50);
043        logo.setWidth(80);
044        logo.setValign(VerticalAlignment.CENTER);        
045        
046        band.addMember(logo);
047        
048        HLayout band2 = new HLayout();
049        band2.setHeight(10);
050        
051        addMember(band2);
052        
053        Label wsLabel = new Label("");
054        wsLabel.setWidth100();
055        wsLabel.setContents("<a href=\"http://www.jboss.org\"><b>Report a problem</b></a>");
056        wsLabel.setHeight100();
057        wsLabel.setStyleName("white-ref");
058        wsLabel.setAlign(Alignment.RIGHT);
059        
060        band.addMember(wsLabel);
061    }
062    
063}