LabelControl.java :  » Web-Framework » jWic » de » jwic » controls » Java Open Source

Java Open Source » Web Framework » jWic 
jWic » de » jwic » controls » LabelControl.java
/*
 * Copyright 2005 jWic group (http://www.jwic.de)
 * 
 * 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.
 *
 * de.jwic.controls.LabelControl
 * $Id: LabelControl.java,v 1.4 2007/05/10 09:59:32 lordsam Exp $
 */package de.jwic.controls;

import de.jwic.base.IControlContainer;

/**
 * Represents a label that displays just text. A style can be specified
 * to format the label.
 * @author Florian Lippisch
 */
public class LabelControl extends HTMLElement {
  
  private static final long serialVersionUID = 1L;

  private String strText = "";

  /**
   * @param container
   */
  public LabelControl(IControlContainer container) {
    super(container, null);
  }
  /**
   * @param container
   * @param name
   */
  public LabelControl(IControlContainer container, String name) {
    super(container, name);
  }
  /**
   *
   * @return java.lang.String
   */
  public String getText() {
    return strText;
  }
  /**
   *
   * @param newText java.lang.String
   */
  public void setText(String newText) {
    strText = newText;
    setRequireRedraw(true);
  }
  /* (non-Javadoc)
   * @see de.jwic.base.Control#actionPerformed(java.lang.String, java.lang.String)
   */
  public void actionPerformed(String actionId, String parameter) {
    // Nothing to do
    
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.