[isidorus-cvs] r529 - in branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets: base views
lgiessmann at common-lisp.net
lgiessmann at common-lisp.net
Wed Jun 29 12:59:20 UTC 2011
Author: lgiessmann
Date: Wed Jun 29 05:59:20 2011
New Revision: 529
Log:
gdl-frontend: Widgets: added the class GdlPsis with all PSIs used in the GDL schema definition
Modified:
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlPsis.java
branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlView.java
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlPsis.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlPsis.java Wed Jun 29 02:21:17 2011 (r528)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/GdlPsis.java Wed Jun 29 05:59:20 2011 (r529)
@@ -2,6 +2,224 @@
public class GdlPsis {
public final static String gdl = "http://psi.isidor.us/gdl/";
- public final static String gdlViewName = gdl + "view-name";
-
+
+ // topic types
+ public class TopicType{
+ public final static String gdlSchema = gdl + "Schema";
+ public final static String gdlView = gdl + "View";
+ public final static String gdlAssociationView = gdl + "Association-View";
+ public final static String gdlCreatorAssociationview = gdl + "Creator-Association-View";
+ public final static String gdlEditorAssociationView = gdl + "Editor-Association-View";
+ public final static String gdlTopicView = gdl + "Topic-View";
+ public final static String gdlDefaultTopicView = gdl + "Default-Topic-View";
+ public final static String gdlDefaulCreatorTopicView = gdl + "Default-Creator-Topic-View";
+ public final static String gdlDefaultEditorTopicView = gdl + "Default-Editor-Topic-View";
+ public final static String gdlSpecialTopicView = gdl + "Special-Topic-View";
+ public final static String gdlSpecialCreatorTopicView = gdl + "Special-Creator-TopicView";
+ public final static String gdlSpecialEditorTopicView = gdl + "SpecialEditorTopicView";
+ public final static String gdlVisibleObject = gdl + "Visible-Object";
+ public final static String gdlStyleClass = gdl + "Style-Class";
+ public final static String gdlDescriptor = gdl + "Descriptor";
+ public final static String gdlLineBreak = gdl + "Line-Break";
+ public final static String gdlInfo = gdl + "Info";
+ public final static String gdlList = gdl + "List";
+ public final static String gdlPosition = gdl + "Position";
+ public final static String gdlNthElement = gdl + "Nth-Element";
+ public final static String gdlValue = gdl + "Value";
+ public final static String gdlDefaultValue = gdl + "Default-Value";
+ public final static String gdlLiteralValue = gdl + "Literal-Value";
+ public final static String gdlDefaultLiteralValue = gdl + "Default-Literal-Value";
+ public final static String gdlTmValue = gdl + "TM-Value";
+ public final static String gdlTmTypeValue = gdl + "TM-Type-Value";
+ public final static String gdlTmSingleTypeValue = gdl + "TM-Single-Type-Value";
+ public final static String gdlTmMultipleTypeValue = gdl + "TM-Multiple-Type-Value";
+ public final static String gdlTmInstanceValue = gdl + "TM-Instance-Value";
+ public final static String gdlDefaultTmValue = gdl + "Default-TM-Value";
+ public final static String gdlDefaultTmTypeValue = gdl + "Default-TM-Type-Value";
+ public final static String gdlDefaultTmSingleTypeValue = gdl + "Default-TM-Single-Type-Value";
+ public final static String gdlDefaultTmMultipleTypeValue = gdl + "Default-TM-Multiple-Type-Value";
+ public final static String gdlDefaultTmInstanceValue = gdl + "Default-TM-Instance-Value";
+ public final static String gdlDatatype = gdl + "Datatype";
+ public final static String gdlType = gdl + "Type";
+ public final static String gdlVariantNameScope = gdl + "Variant-Name-Scope";
+ public final static String gdlVariantNameReifier = gdl + "Variant-Name-Reifier";
+ public final static String gdlVariantNameIdentifiers = gdl + "Variant-Name-Identifiers";
+ public final static String gdlRolePlayer = gdl + "Role-Player";
+ public final static String gdlAssociationRole = gdl + "Association-Role";
+ public final static String gdlHiddenValue = gdl + "Hidden-Value";
+ public final static String gdlValueGroup = gdl + "Value-Group";
+ public final static String gdlTextObject = gdl + "Text-Object";
+ public final static String gdlTitle = gdl + "Title";
+ public final static String gdlReference = gdl + "Reference";
+ public final static String gdlListBox = gdl + "List-Box";
+ public final static String gdlCompleData = gdl + "Complex-Data";
+ public final static String gdlImage = gdl + "Image";
+ public final static String gdlAudio = gdl + "Audio";
+ public final static String gdlVideo = gdl + "Video";
+ public final static String gdlTimePicker = gdl + "Time-Picker";
+ public final static String gdlDatePicker = gdl + "Date-Picker";
+ public final static String gdlDateTimePicker = gdl + "Date-Time-Picker";
+ public final static String gdlText = gdl + "Text";
+ public final static String gdlUnit = gdl + "Unit";
+ public final static String gdlButton = gdl + "Button";
+ public final static String gdlInputbutton = gdl + "Input-Button";
+ public final static String gdlRadioButton = gdl + "Radio-Button";
+ public final static String gdlCheckBox = gdl + "Check-Box";
+ public final static String gdlActionButton = gdl + "Action-Button";
+ public final static String gdlValidateButton = gdl + "Validate-Button";
+ public final static String gdlCreateButton = gdl + "Create-Button";
+ public final static String gdlDeleteButton = gdl + "Delete-Button";
+ public final static String gdlCommitButton = gdl + "Commit-Button";
+ }
+
+
+ // name types
+ public class NameType{
+ public final static String gdlViewName = gdl + "view-name";
+ public final static String gdlSchemaName = gdl + "schema-name";
+ }
+
+
+ // occurrence types
+ public class OccurrenceType {
+ public final static String gdlVerticalAlign = gdl + "vertical-align";
+ public final static String gdlDisplay = gdl + "display";
+ public final static String gdlId = gdl + "id";
+ public final static String gdlMargin = gdl + "margin";
+ public final static String gdlMarginTop = gdl + "margin-top";
+ public final static String gdlMarginRight = gdl + "margin-right";
+ public final static String gdlMarginBottom = gdl + "margin-bottom";
+ public final static String gdlMarginLeft = gdl + "margin-left";
+ public final static String gdlBorderColor = gdl + "border-color";
+ public final static String gdlBorderTopColor = gdl + "border-top-color";
+ public final static String gdlBorderRightColor = gdl + "border-right-color";
+ public final static String gdlBorderBottomColor = gdl + "border-bottom-color";
+ public final static String gdlBorderLeftColor = gdl + "border-left-color";
+ public final static String gdlBorderStyle = gdl + "border-style";
+ public final static String gdlBorderTopStyle = gdl + "border-top-style";
+ public final static String gdlBorderRightStyle = gdl + "border-right-style";
+ public final static String gdlBorderBottomStyle = gdl + "border-bottom-style";
+ public final static String gdlBorderLeftStyle = gdl + "border-left-style";
+ public final static String gdlBorderWidth = gdl + "border-width";
+ public final static String gdlBorderTopWidth = gdl + "border-top-width";
+ public final static String gdlBorderRightWidth = gdl + "border-right-width";
+ public final static String gdlBorderBottomWidth = gdl + "border-bottom-width";
+ public final static String gdlBorderLeftWidth = gdl + "border-left-width";
+ public final static String gdlBorderRadius = gdl + "border-radius";
+ public final static String gdlBorderTopRightRadius = gdl + "border-top-right-radius";
+ public final static String gdlBorderBottomRightRadius = gdl + "border-bottom-right-radius";
+ public final static String gdlBorderBottomLeftRadius = gdl + "border-bottom-left-radius";
+ public final static String gdlBorderTopLeftRadius = gdl + "border-top-left-radius";
+ public final static String gdlCursor = gdl + "cursor";
+ public final static String gdlZindex = gdl + "z-index";
+ public final static String gdlWidth = gdl + "width";
+ public final static String gdlMinWidth = gdl + "min-width";
+ public final static String gdlMaxWidth = gdl + "max-width";
+ public final static String gdlHeight = gdl + "height";
+ public final static String gdlMinHeight = gdl + "min-height";
+ public final static String gdlMaxHeight = gdl + "max-height";
+ public final static String gdlPadding = gdl + "padding";
+ public final static String gdlPaddingTop = gdl + "padding-top";
+ public final static String gdlPaddingRight = gdl + "padding-right";
+ public final static String gdlPaddingBottom = gdl + "padding-bottom";
+ public final static String gdlPaddingLeft = gdl + "padding-left";
+ public final static String gdlClear = gdl + "clear";
+ public final static String gdlFloat = gdl + "float";
+ public final static String gdlBackGroundColor = gdl + "background-color";
+ public final static String gdlOverflow = gdl + "overflow";
+ public final static String gdlOrdered = gdl + "ordered";
+ public final static String gdlListstyleType = gdl + "list-style-type";
+ public final static String gdlListStylePosition = gdl + "list-style-position";
+ public final static String gdlPositionStyle = gdl + "position-style";
+ public final static String gdlNthValue = gdl + "nth-value";
+ public final static String gdlTop = gdl + "top";
+ public final static String gdlRight = gdl + "right";
+ public final static String gdlBottom = gdl + "bottom";
+ public final static String gdlLeft = gdl + "left";
+ public final static String gdlFixed = gdl + "fixed";
+ public final static String gdlLiteralValue = gdl + "literal-value";
+ public final static String gdlDirection = gdl + "direction";
+ public final static String gdlTextAlign = gdl + "text-align";
+ public final static String gdlLineHeight = gdl + "line-height";
+ public final static String gdlTextDecoration = gdl + "text-decoration";
+ public final static String gdlColor = gdl + "color";
+ public final static String gdlFontfamily = gdl + "font-family";
+ public final static String gdlFontStyle = gdl + "font-style";
+ public final static String gdlFontSize = gdl + "font-weight";
+ public final static String gdlFontWeight = gdl + "font-weight";
+ public final static String gdlLetterSpacing = gdl + "letter-spacing";
+ public final static String gdlWordSpacing = gdl + "word-spacing";
+ public final static String gdlMultiple = gdl + "multiple";
+ public final static String gdlSize = gdl + "size";
+ public final static String gdlOnePerGroup = gdl + "one-per-group";
+ public final static String gdlTextType = gdl + "text-type";
+ public final static String gdlReadonly = gdl + "readonly";
+ public final static String gdlRows = gdl + "rows";
+ public final static String gdlCols = gdl + "cols";
+ public final static String gdlResize = gdl + "resize";
+ public final static String gdlUnitName = gdl + "unit-name";
+ public final static String gdlUnitBorderWidth = gdl + "unit-border-width";
+ public final static String gdlUnitBorderTopWidth = gdl + "unit-border-top-width";
+ public final static String gdlUnitBorderRightWidth = gdl + "unit-border-right-width";
+ public final static String gdlUnitBorderBottomWidth = gdl + "unit-border-bottom-width";
+ public final static String gdlUnitBorderLeftWidth = gdl + "unit-border-left-width";
+ public final static String gdlUnitBorderColor = gdl + "unit-border-color";
+ public final static String gdlUnitBorderTopColor = gdl + "unit-border-top-color";
+ public final static String gdlUnitBorderRightColor = gdl + "unit-border-right-color";
+ public final static String gdlUnitBorderBottomColor = gdl + "unit-border-bottom-color";
+ public final static String gdlUnitBorderLeftColor = gdl + "unit-border-left-color";
+ public final static String gdlUnitBorderStyle = gdl + "unit-border-style";
+ public final static String gdlUnitBorderTopStyle = gdl + "unit-border-top-style";
+ public final static String gdlUnitBorderRightStyle = gdl + "unit-border-right-style";
+ public final static String gdlUnitBorderBottomStyle = gdl + "unit-border-bottom-style";
+ public final static String gdlUnitBorderLeftStyle = gdl + "unit-border-left-style";
+ public final static String gdlUnitBorderPadding = gdl + "unit-border-padding";
+ public final static String gdlUnitBorderTopPadding = gdl + "unit-border-top-padding";
+ public final static String gdlUnitBorderRightPadding = gdl + "unit-border-right-padding";
+ public final static String gdlUnitBorderBottomPadding = gdl + "unit-border-bottom-padding";
+ public final static String gdlUnitBorderLeftPadding = gdl + "unit-border-left-padding";
+ public final static String gdlUnitBorderMargin = gdl + "unit-border-margin";
+ public final static String gdlUnitBorderTopMargin = gdl + "unit-border-top-margin";
+ public final static String gdlUnitBorderRightMargin = gdl + "unit-border-right-margin";
+ public final static String gdlUnitBorderBottomMargin = gdl + "unit-border-bottom-margin";
+ public final static String gdlUnitBorderLeftMargin = gdl + "unit-border-left-margin";
+ public final static String gdlUnitBorderRadius = gdl + "unit-border-radius";
+ public final static String gdlUnitborderToprightRadius = gdl + "unit-border-top-right-radius";
+ public final static String gdlUnitBorderBottomRightRadius = gdl + "unit-border-bottom-right-radius";
+ public final static String gdlUnitBoderBottomLeftRadius = gdl + "unit-border-bottom-left-radius";
+ public final static String gdlUnitBorderTopLeftRadius = gdl + "unit-border-top-left-radius";
+ }
+
+
+ // association types
+ public class AssociationType {
+ public final static String gdlContains = gdl + "contains";
+ public final static String gdlPosition = gdl + "position";
+ public final static String gdlNthPosition = gdl + "nth-position";
+ public final static String gdlButtonPosition = gdl + "button-position";
+ public final static String gdlTmbinding = gdl + "tm-binding";
+ public final static String gdlViewBinding = gdl + "view-binding";
+ }
+
+
+ // role types
+ public class RoleType {
+ public final static String gdlContainer = gdl + "container";
+ public final static String gdlContainee = gdl + "containee";
+ public final static String gdlTmConstruct = gdl + "tm-construct";
+ public final static String gdlDescriptor = gdl + "descriptor";
+ public final static String gdlDescendant = gdl + "descendant";
+ public final static String gdlAncestor = gdl + "ancestor";
+ public final static String gdlNthElement = gdl + "nth-element";
+ public final static String gdlHiddenValue = gdl + "hidden-value";
+ public final static String gdlValueGroup = gdl + "value-group";
+ }
+
+
+ // themes (topic instances)
+ public class Scope {
+ public final static String gdlHover = gdl + "hover";
+ public final static String gdlFocus = gdl + "focus";
+ public final static String gdlActive = gdl + "active";
+ }
}
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlView.java
==============================================================================
--- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlView.java Wed Jun 29 02:21:17 2011 (r528)
+++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/views/GdlView.java Wed Jun 29 05:59:20 2011 (r529)
@@ -20,7 +20,7 @@
protected void init(TopicMap tm, Topic representative) throws InvalidGdlSchemaException {
this.tm = tm;
this.representative = representative;
- JsArray<Name> viewNames = representative.getNames(tm.getTopicBySubjectIdentifier(tm.createLocator(GdlPsis.gdlViewName)));
+ JsArray<Name> viewNames = representative.getNames(tm.getTopicBySubjectIdentifier(tm.createLocator(GdlPsis.NameType.gdlViewName)));
if(viewNames.length() != 1){
throw new InvalidGdlSchemaException("A view must be bound to a gdl:view-name instance");
}
More information about the Isidorus-cvs
mailing list