Class WifiQRCode
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.Codes.Code
-
- com.cloudofficeprint.RenderElements.Codes.QRCode
-
- com.cloudofficeprint.RenderElements.Codes.WifiQRCode
-
public class WifiQRCode extends QRCode
This class is a subclass of QRCode and is used to generate a WiFi QR-code element.
-
-
Constructor Summary
Constructors Constructor Description WifiQRCode(java.lang.String name, java.lang.String SSID, java.lang.String password, java.lang.String encryption, java.lang.Boolean wifiHidden)
This class is a subclass of QRCode and is used to generate a WiFi QR-code element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEncryption()
com.google.gson.JsonObject
getJSON()
java.lang.String
getPassword()
java.lang.Boolean
getWifiHidden()
void
setEncryption(java.lang.String encryption)
void
setPassword(java.lang.String password)
void
setWifiHidden(java.lang.Boolean wifiHidden)
-
Methods inherited from class com.cloudofficeprint.RenderElements.Codes.QRCode
getAutoColor, getAutoColorDark, getAutoColorLight, getBackGroundImage, getBackgroundImageAlpha, getColorDark, getColorLight, getDotScale, getHeightLogo, getLogo, getLogoBackGroundColor, getPiBLColor, getPiColor, getPiTLColor, getPiTRColor, getPoBLColor, getPoColor, getPoTLColor, getPoTRColor, getQuietZone, getQuietZoneColor, getTimingColor, getTimingHColor, getTimingVColor, getWidthLogo, setAutoColor, setAutoColorDark, setAutoColorLight, setBackGroundImage, setBackgroundImageAlpha, setBackGroundImageFromLocalFile, setColorDark, setColorLight, setDotScale, setHeightLogo, setLogo, setLogoBackGroundColor, setLogoFromLocalFile, setPiBLColor, setPiColor, setPiTLColor, setPiTRColor, setPoBLColor, setPoColor, setPoTLColor, setPoTRColor, setQuietZone, setQuietZoneColor, setTimingColor, setTimingHColor, setTimingVColor, setWidthLogo
-
Methods inherited from class com.cloudofficeprint.RenderElements.Codes.Code
getTemplateTags, getType, setType
-
Methods inherited from class com.cloudofficeprint.RenderElements.RenderElement
getName, getValue, setName, setValue
-
-
-
-
Constructor Detail
-
WifiQRCode
public WifiQRCode(java.lang.String name, java.lang.String SSID, java.lang.String password, java.lang.String encryption, java.lang.Boolean wifiHidden)
This class is a subclass of QRCode and is used to generate a WiFi QR-code element. Styling options can be set with the setter functions of the upper class.- Parameters:
name
- Name of this code for the tag.SSID
- SSID of the Wifi.password
- Password of the WiFi.encryption
- Encryption of the WiFi.wifiHidden
- Whether the WiFi is hidden or not.
-
-
Method Detail
-
getPassword
public java.lang.String getPassword()
- Returns:
- Password of the WiFi.
-
setPassword
public void setPassword(java.lang.String password)
- Parameters:
password
- Password of the WiFi.
-
getEncryption
public java.lang.String getEncryption()
- Returns:
- Encryption type of the WiFi e.g. WPA, WEP, WEP2 etc.
-
setEncryption
public void setEncryption(java.lang.String encryption)
- Parameters:
encryption
- Encryption type of the WiFi e.g. WPA, WEP, WEP2 etc.
-
getWifiHidden
public java.lang.Boolean getWifiHidden()
- Returns:
- Whether WiFi is hidden or not.
-
setWifiHidden
public void setWifiHidden(java.lang.Boolean wifiHidden)
- Parameters:
wifiHidden
- Whether WiFi is hidden or not.
-
-