Files
Brainstorm/Foundation Widget Test Application/src/test/model/RadioMenu.java

54 lines
1.4 KiB
Java
Raw Normal View History

2014-05-30 10:31:51 -07:00
/*
* Copyright (c) 2008,2009 Declarative Engineering LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Declarative Engineering LLC
* verson 1 which accompanies this distribution, and is available at
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
*/
package test.model;
import com.foundation.metadata.Attribute;
public class RadioMenu extends AbstractModel {
public static final Attribute NAME = registerAttribute(RadioMenu.class, "name");
public static final Attribute IS_CHECKED = registerAttribute(RadioMenu.class, "isChecked", Boolean.FALSE);
/**
* RadioMenu constructor.
*/
public RadioMenu() {
}//RadioMenu()//
/**
* RadioMenu constructor.
*/
public RadioMenu(String name) {
setName(name);
}//RadioMenu()//
/**
* Gets the name value.
* @return The name value.
*/
public String getName() {
return (String) getAttributeValue(NAME);
}//getName()//
/**
* Sets the name value.
* @param name The name value.
*/
public void setName(String name) {
setAttributeValue(NAME, name);
}//setName()//
/**
* Gets the isChecked value.
* @return The isChecked value.
*/
public Boolean getIsChecked() {
return (Boolean) getAttributeValue(IS_CHECKED);
}//getIsChecked()//
/**
* Sets the isChecked value.
* @param isChecked The isChecked value.
*/
public void setIsChecked(Boolean isChecked) {
setAttributeValue(IS_CHECKED, isChecked);
}//setIsChecked()//
}//RadioMenu//