001
014
015 package com.liferay.portal.kernel.lar;
016
017
020 public class PortletDataHandlerBoolean extends PortletDataHandlerControl {
021
022 public PortletDataHandlerBoolean(String namespace, String controlName) {
023 this(namespace, controlName, true);
024 }
025
026 public PortletDataHandlerBoolean(
027 String namespace, String controlName, boolean defaultState) {
028
029 this(namespace, controlName, defaultState, false);
030 }
031
032 public PortletDataHandlerBoolean(
033 String namespace, String controlName, boolean defaultState,
034 boolean disabled) {
035
036 this(namespace, controlName, defaultState, disabled, null);
037 }
038
039 public PortletDataHandlerBoolean(
040 String namespace, String controlName, boolean defaultState,
041 boolean disabled, PortletDataHandlerControl[] children) {
042
043 super(namespace, controlName, disabled);
044
045 _children = children;
046 _defaultState = defaultState;
047 }
048
049 public PortletDataHandlerBoolean(
050 String namespace, String controlName, boolean defaultState,
051 PortletDataHandlerControl[] children) {
052
053 this(namespace, controlName, defaultState, false, children);
054 }
055
056 public PortletDataHandlerControl[] getChildren() {
057 return _children;
058 }
059
060 public boolean getDefaultState() {
061 return _defaultState;
062 }
063
064 private PortletDataHandlerControl[] _children;
065 private boolean _defaultState;
066
067 }