Initial commit from SVN.
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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//
|
||||
Reference in New Issue
Block a user