Jump to: navigation, search

Difference between revisions of "Class Details"


Line 97: Line 97:
  
  
[[Category:UBIK Studio Controls]]
+
[[Category:UBIK Studio]][[Category:UBIK Studio Controls]]

Revision as of 11:28, 13 March 2013

Purpose

The Class Detail browser is designed to display and edit the details of UBIK® MetaClasses in terms of its MetaProperties, Attributes and Classifications.

Basics

Appearance

Icons

The control uses the very same icons as the Class Browser.

Tooltips

The control implements the very same Tooltip logics as the ClassBrowser.

Node Texts

The nodes will always display the string representation of the respective object, which is by default

  • Name Description for MetaClasses
  • Description (Name) for Content objects

However, as this is something that can be customized, the nodes might display something different.

Drag & Drop

The Class Details control is a source for Drag&Drop operations, any object can be dragged from here. It is also a target for Drag&Drop operations:

  • In MetaProperty view mode, MetaProperty objects can be dropped on the root node
  • In Classification view mode, other MetaClasses can be dropped on the root node

Toolbar

Control Purpose
View Style Indicates or changes the View Style of the control; changing it will result in reloading of the control
Navigate to context object Attempts to navigate to the current context MetaClass.
Save Saves the relation data object.
Add Shows a picker to either add a new MetaProperty, or a new Classification to the current MetaClass, depending on the current View Style.

Context menu

Clicking a node with the right mouse button will bring up a standard context menu for each node, except namespaces. Depending on the view style there will be different options, however, all nodes will at least show the following menu items:

Menu Object Type Purpose
Remove MetaProperty Removes the selected MetaProperty from the MetaClass
Navigate To All Opens the Navigation menu
Save All Saves changes on the object to the database
Delete All Deletes the object from cache. It will only be removed from the database after a Save
Implement Classification Classification Attempts to add all MetaProperties to the current MetaClass that are declared by this classification and not yet implemented
Implement Property MetaProperty (of a Classification) Attempts to add the selected MetaProperty to the current MetaClass

View Styles

The Class Details control has four different View Styles, each of them providing different views and functionality.

Attributes

This view mode has no functionality yet.

MetaProperties

In this view mode, the MetaProperty relation of the current context MetaClass will be evaluated. So expanding the root node will display all children of this relation, meaning every MetaProperty assigned to this MetaClass.

Selecting a MetaProperty in the tree will bring up an Object Editor on the right side, allowing to edit specific data for the relation between this very MetaProperty and the current MetaClass, such as alternate ordering or an alternate description for this usage.

Classification

In this view mode, the classifications of the current context MetaClass will be evaluated. So expanding the root node will display all children of this relation, meaning every classification assigned to this MetaClass. Expanding a classification node will then show all the MetaProperties defined for this classification.

Classification nodes and their properties are color coded, where the different colors have the following meaning:

Color Object Type Meaning
Red Classification The current MetaClass doesn't implement at least one of the classifications MetaProperties
Red MetaProperty (of a Classification) The current MetaProperty is not yet implemented by the current MetaClass
Green Classification The current MetaClass implements all MetaProperties of this classification
Green MetaProperty (of a Classification) The current MetaClass already implements this MetaProperty

Everything

This view mode combines the three other view modes, thus provides a complete overview on the MetaClass details.

Other functionality

Editing name and description of an object

Edit the label of any node (except Namespaces) using F2 and hit Enter when finished. This will attempt to set the text left of the first blank to the Name (NAME)-property of the object, and the text right of the first blank to its Description (DESCR)-property. If the object doesn't posses the NAME or the DESCR property or it is locked for whatever reason, editing will not be possible.