org.nasdanika.html.model.app.impl.NavigationPanelImpl Maven / Gradle / Ivy
/**
*/
package org.nasdanika.html.model.app.impl;
import org.eclipse.emf.ecore.EClass;
import org.nasdanika.html.model.app.AppPackage;
import org.nasdanika.html.model.app.NavigationPanel;
import org.nasdanika.html.model.app.NavigationPanelStyle;
/**
*
* An implementation of the model object 'Navigation Panel'.
*
*
* The following features are implemented:
*
*
* - {@link org.nasdanika.html.model.app.impl.NavigationPanelImpl#getStyle Style}
* - {@link org.nasdanika.html.model.app.impl.NavigationPanelImpl#getId Id}
* - {@link org.nasdanika.html.model.app.impl.NavigationPanelImpl#getLabelTrimLength Label Trim Length}
* - {@link org.nasdanika.html.model.app.impl.NavigationPanelImpl#isCollapsible Collapsible}
* - {@link org.nasdanika.html.model.app.impl.NavigationPanelImpl#getJsTreeSearchThreshold Js Tree Search Threshold}
*
*
* @generated
*/
public class NavigationPanelImpl extends PagePartImpl implements NavigationPanel {
/**
* The default value of the '{@link #getStyle() Style}' attribute.
*
*
* @see #getStyle()
* @generated
* @ordered
*/
protected static final NavigationPanelStyle STYLE_EDEFAULT = NavigationPanelStyle.AUTO;
/**
* The default value of the '{@link #getId() Id}' attribute.
*
*
* @see #getId()
* @generated
* @ordered
*/
protected static final String ID_EDEFAULT = null;
/**
* The default value of the '{@link #getLabelTrimLength() Label Trim Length}' attribute.
*
*
* @see #getLabelTrimLength()
* @generated
* @ordered
*/
protected static final int LABEL_TRIM_LENGTH_EDEFAULT = 50;
/**
* The default value of the '{@link #isCollapsible() Collapsible}' attribute.
*
*
* @see #isCollapsible()
* @generated
* @ordered
*/
protected static final boolean COLLAPSIBLE_EDEFAULT = false;
/**
* The default value of the '{@link #getJsTreeSearchThreshold() Js Tree Search Threshold}' attribute.
*
*
* @see #getJsTreeSearchThreshold()
* @generated
* @ordered
*/
protected static final int JS_TREE_SEARCH_THRESHOLD_EDEFAULT = 0;
/**
*
*
* @generated
*/
protected NavigationPanelImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return AppPackage.Literals.NAVIGATION_PANEL;
}
/**
*
*
* @generated
*/
@Override
public NavigationPanelStyle getStyle() {
return (NavigationPanelStyle)eDynamicGet(AppPackage.NAVIGATION_PANEL__STYLE, AppPackage.Literals.NAVIGATION_PANEL__STYLE, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setStyle(NavigationPanelStyle newStyle) {
eDynamicSet(AppPackage.NAVIGATION_PANEL__STYLE, AppPackage.Literals.NAVIGATION_PANEL__STYLE, newStyle);
}
/**
*
*
* @generated
*/
@Override
public String getId() {
return (String)eDynamicGet(AppPackage.NAVIGATION_PANEL__ID, AppPackage.Literals.NAVIGATION_PANEL__ID, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setId(String newId) {
eDynamicSet(AppPackage.NAVIGATION_PANEL__ID, AppPackage.Literals.NAVIGATION_PANEL__ID, newId);
}
/**
*
*
* @generated
*/
@Override
public int getLabelTrimLength() {
return (Integer)eDynamicGet(AppPackage.NAVIGATION_PANEL__LABEL_TRIM_LENGTH, AppPackage.Literals.NAVIGATION_PANEL__LABEL_TRIM_LENGTH, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setLabelTrimLength(int newLabelTrimLength) {
eDynamicSet(AppPackage.NAVIGATION_PANEL__LABEL_TRIM_LENGTH, AppPackage.Literals.NAVIGATION_PANEL__LABEL_TRIM_LENGTH, newLabelTrimLength);
}
/**
*
*
* @generated
*/
@Override
public boolean isCollapsible() {
return (Boolean)eDynamicGet(AppPackage.NAVIGATION_PANEL__COLLAPSIBLE, AppPackage.Literals.NAVIGATION_PANEL__COLLAPSIBLE, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setCollapsible(boolean newCollapsible) {
eDynamicSet(AppPackage.NAVIGATION_PANEL__COLLAPSIBLE, AppPackage.Literals.NAVIGATION_PANEL__COLLAPSIBLE, newCollapsible);
}
/**
*
*
* @generated
*/
@Override
public int getJsTreeSearchThreshold() {
return (Integer)eDynamicGet(AppPackage.NAVIGATION_PANEL__JS_TREE_SEARCH_THRESHOLD, AppPackage.Literals.NAVIGATION_PANEL__JS_TREE_SEARCH_THRESHOLD, true, true);
}
/**
*
*
* @generated
*/
@Override
public void setJsTreeSearchThreshold(int newJsTreeSearchThreshold) {
eDynamicSet(AppPackage.NAVIGATION_PANEL__JS_TREE_SEARCH_THRESHOLD, AppPackage.Literals.NAVIGATION_PANEL__JS_TREE_SEARCH_THRESHOLD, newJsTreeSearchThreshold);
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AppPackage.NAVIGATION_PANEL__STYLE:
return getStyle();
case AppPackage.NAVIGATION_PANEL__ID:
return getId();
case AppPackage.NAVIGATION_PANEL__LABEL_TRIM_LENGTH:
return getLabelTrimLength();
case AppPackage.NAVIGATION_PANEL__COLLAPSIBLE:
return isCollapsible();
case AppPackage.NAVIGATION_PANEL__JS_TREE_SEARCH_THRESHOLD:
return getJsTreeSearchThreshold();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AppPackage.NAVIGATION_PANEL__STYLE:
setStyle((NavigationPanelStyle)newValue);
return;
case AppPackage.NAVIGATION_PANEL__ID:
setId((String)newValue);
return;
case AppPackage.NAVIGATION_PANEL__LABEL_TRIM_LENGTH:
setLabelTrimLength((Integer)newValue);
return;
case AppPackage.NAVIGATION_PANEL__COLLAPSIBLE:
setCollapsible((Boolean)newValue);
return;
case AppPackage.NAVIGATION_PANEL__JS_TREE_SEARCH_THRESHOLD:
setJsTreeSearchThreshold((Integer)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case AppPackage.NAVIGATION_PANEL__STYLE:
setStyle(STYLE_EDEFAULT);
return;
case AppPackage.NAVIGATION_PANEL__ID:
setId(ID_EDEFAULT);
return;
case AppPackage.NAVIGATION_PANEL__LABEL_TRIM_LENGTH:
setLabelTrimLength(LABEL_TRIM_LENGTH_EDEFAULT);
return;
case AppPackage.NAVIGATION_PANEL__COLLAPSIBLE:
setCollapsible(COLLAPSIBLE_EDEFAULT);
return;
case AppPackage.NAVIGATION_PANEL__JS_TREE_SEARCH_THRESHOLD:
setJsTreeSearchThreshold(JS_TREE_SEARCH_THRESHOLD_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AppPackage.NAVIGATION_PANEL__STYLE:
return getStyle() != STYLE_EDEFAULT;
case AppPackage.NAVIGATION_PANEL__ID:
return ID_EDEFAULT == null ? getId() != null : !ID_EDEFAULT.equals(getId());
case AppPackage.NAVIGATION_PANEL__LABEL_TRIM_LENGTH:
return getLabelTrimLength() != LABEL_TRIM_LENGTH_EDEFAULT;
case AppPackage.NAVIGATION_PANEL__COLLAPSIBLE:
return isCollapsible() != COLLAPSIBLE_EDEFAULT;
case AppPackage.NAVIGATION_PANEL__JS_TREE_SEARCH_THRESHOLD:
return getJsTreeSearchThreshold() != JS_TREE_SEARCH_THRESHOLD_EDEFAULT;
}
return super.eIsSet(featureID);
}
} //NavigationPanelImpl