01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.desktop.taglib.container.table;
06:
07: import javax.servlet.jsp.JspException;
08: import javax.servlet.http.HttpServletRequest;
09: import java.util.Map;
10:
11: import com.sun.portal.desktop.taglib.BaseDesktopTagSupport;
12: import com.sun.portal.desktop.taglib.DesktopTaglibConstants;
13: import com.sun.portal.desktop.taglib.DesktopTaglibException;
14: import com.sun.portal.providers.util.ProviderProperties;
15: import com.sun.portal.providers.util.PropertyUtil;
16:
17: public class GetIsMovableTag extends BaseTableContainerTagSupport {
18: public int doStartTag() throws JspException {
19: Boolean result = null;
20:
21: Map channelsIsMovable = getMapProperty(_ChannelsIsMovable,
22: ProviderProperties.CHANNELS_IS_MOVABLE);
23: result = (Boolean) channelsIsMovable.get(getChannelName());
24: if (result == null) {
25: boolean dIsMovable = getBooleanProperty(
26: _dChannelsIsMovable,
27: ProviderProperties.DEFAULT_CHANNEL_IS_MOVABLE);
28: result = dIsMovable ? Boolean.TRUE : Boolean.FALSE;
29: }
30: processResult(result);
31: return SKIP_BODY;
32: }
33:
34: }
|