org.icefaces.mobi.api.IDevice Maven / Gradle / Ivy
Show all versions of icefaces-mobi Show documentation
/*
* Copyright 2004-2014 ICEsoft Technologies Canada Corp.
*
* 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 org.icefaces.mobi.api;
import java.lang.String;
public interface IDevice extends IMobiComponent{
public static final String DISABLED_STYLE_CLASS = " mobi-button-dis";
public static final String FOR_MSG = "for component was not detected. ";
/*
if the container is used for camera, user can specify a maxwidth
attribute that will limit the size of the image file uploaded
to the server
*/
public int getMaxwidth();
/*
if the container is used for camera, user can specify a maxwidth
attribute that will limit the size of the image file uploaded
to the server. the image will be constrained to fit within
this dimension. should be used with setMaxheight.
*/
public void setMaxwidth(int width);
/*
for camera only. The native device will compress the image
such that it fits within the specified minwidth and height
*/
public int getMaxheight();
/*
for camera only. The native device will compress the image
such that it fits within the specified minwidth and height
*/
public void setMaxheight(int height);
/*
the script that will be executed depending on container or
icemobileSX presence
*/
public String getScript(String id, boolean isSX);
/* can use this attribute for I8N compliance for camera label
default is the label attribute
*/
public String getButtonLabel();
/*
can set a value for the button label
*/
public void setButtonLabel(String buttonLabel);
/* interface uses this for core renderer since JSP has all devices under
once class.
*/
public String getComponentType();
/*
core renderer requies for jsp for icemobileSX
*/
public String getSessionId();
public String getParams();
public String getPostURL();
}