-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#26 form element validation: studio implementation
- Loading branch information
1 parent
8ab9780
commit 108ca9f
Showing
20 changed files
with
462 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...ugin/src/main/joo/com/tallence/formeditor/studio/components/StateFulCollapsiblePanel.mxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<local:StateFulCollapsiblePanelBase xmlns:fx="http://ns.adobe.com/mxml/2009" | ||
xmlns:local="com.tallence.formeditor.studio.components.*"> | ||
|
||
<fx:Script><![CDATA[ | ||
public native function StateFulCollapsiblePanel(config:StateFulCollapsiblePanel = null); | ||
]]> | ||
</fx:Script> | ||
|
||
</local:StateFulCollapsiblePanelBase> |
61 changes: 61 additions & 0 deletions
61
...in/src/main/joo/com/tallence/formeditor/studio/components/StateFulCollapsiblePanelBase.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Copyright 2018 Tallence AG | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.tallence.formeditor.studio.components { | ||
import com.coremedia.cms.editor.sdk.premular.CollapsiblePanel; | ||
import com.coremedia.ui.mixins.IHighlightableMixin; | ||
import com.coremedia.ui.mixins.IValidationStateMixin; | ||
import com.coremedia.ui.mixins.ValidationState; | ||
|
||
/** | ||
* This component extends the {@link CollapsiblePanel} and implements the {@link IValidationStateMixin} and | ||
* {@link IHighlightableMixin} interface to display a validation state. | ||
*/ | ||
public class StateFulCollapsiblePanelBase extends CollapsiblePanel implements IValidationStateMixin, IHighlightableMixin { | ||
|
||
public function StateFulCollapsiblePanelBase(config:StateFulCollapsiblePanel = null) { | ||
super(config); | ||
this.initValidationStateMixin(); | ||
} | ||
|
||
/** @inheritDoc */ | ||
public native function initValidationStateMixin():void; | ||
|
||
/** @private */ | ||
[Bindable(event="DUMMY")] | ||
public native function set validationState(validationState:ValidationState):void; | ||
|
||
/** @private */ | ||
[Bindable(event="DUMMY")] | ||
public native function set validationMessage(validationMessage:String):void; | ||
|
||
/** @inheritDoc */ | ||
[Bindable(event="DUMMY")] | ||
public native function get validationState():ValidationState; | ||
|
||
/** @inheritDoc */ | ||
[Bindable(event="DUMMY")] | ||
public native function get validationMessage():String; | ||
|
||
/** @private */ | ||
[Bindable(event="DUMMY")] | ||
public native function set highlighted(newHighlighted:Boolean):void; | ||
|
||
/** @inheritDoc */ | ||
[Bindable(event="DUMMY")] | ||
public native function get highlighted():Boolean; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.