Class DivIpAddr
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.HtmlComponent
-
- com.vaadin.flow.component.HtmlContainer
-
- com.vaadin.flow.component.html.Div
-
- org.neotropic.util.visual.general.FormatedBusinessObjectDiv
-
- com.neotropic.kuwaiba.modules.commercial.ipam.visual.DivIpAddr
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Div>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasComponents
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasOrderedComponents
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasText
,Serializable
public class DivIpAddr extends FormatedBusinessObjectDiv
A graphical square used to contains numbers used in IPAM to show al the numbers of the last segment, design to be used also with evlans/cvlans- Author:
- Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
IS_MANGEMENT
The busy style name for the ip addressstatic String
STATE_BUSY
The busy style name for the ip addressstatic String
STATE_FREE
The free style name for the ip addressstatic String
STATE_NOT_CREATED
Possible IP address in a subnet but not yet created in kuwaibastatic String
STATE_RESERVED
The busy style name for the ip address
-
Constructor Summary
Constructors Constructor Description DivIpAddr(BusinessObjectLight object, SubnetDetail subnetDetail, String ipAddr, String state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIpAddr()
String
getIpAddrId()
String
getMask()
String
getNetworkIpAddr()
String
getOldState()
String
getParentClassName()
String
getState()
String
getSubnetId()
String
getSubnetSegment()
void
setIpAddr(String ipAddr)
void
setIpAddrId(String ipAddrId)
void
setNetworkIpAddr(String networkIpAddr)
void
setOldState(String oldState)
void
setParentClassName(String parentClassName)
void
setState(String state)
Removes the old state from the div amd sets the new onevoid
setSubnetId(String subnetId)
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut
-
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
-
Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replace
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
-
-
-
-
Field Detail
-
STATE_FREE
public static final String STATE_FREE
The free style name for the ip address- See Also:
- Constant Field Values
-
STATE_BUSY
public static final String STATE_BUSY
The busy style name for the ip address- See Also:
- Constant Field Values
-
STATE_RESERVED
public static final String STATE_RESERVED
The busy style name for the ip address- See Also:
- Constant Field Values
-
IS_MANGEMENT
public static final String IS_MANGEMENT
The busy style name for the ip address- See Also:
- Constant Field Values
-
STATE_NOT_CREATED
public static final String STATE_NOT_CREATED
Possible IP address in a subnet but not yet created in kuwaiba- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DivIpAddr
public DivIpAddr(BusinessObjectLight object, SubnetDetail subnetDetail, String ipAddr, String state)
-
-
Method Detail
-
getSubnetId
public String getSubnetId()
-
setSubnetId
public void setSubnetId(String subnetId)
-
getNetworkIpAddr
public String getNetworkIpAddr()
-
setNetworkIpAddr
public void setNetworkIpAddr(String networkIpAddr)
-
getIpAddrId
public String getIpAddrId()
-
setIpAddrId
public void setIpAddrId(String ipAddrId)
-
getIpAddr
public String getIpAddr()
-
setIpAddr
public void setIpAddr(String ipAddr)
-
getState
public String getState()
-
getOldState
public String getOldState()
-
setOldState
public void setOldState(String oldState)
-
getSubnetSegment
public String getSubnetSegment()
-
getMask
public String getMask()
-
getParentClassName
public String getParentClassName()
-
setParentClassName
public void setParentClassName(String parentClassName)
-
setState
public void setState(String state)
Removes the old state from the div amd sets the new one- Parameters:
state
- the style for the div
-
-