Class OperatorLPElementClient<T extends OperatorLPElement>
java.lang.Object
org.cyclops.integrateddynamics.core.logicprogrammer.client.OperatorLPElementClient<T>
- All Implemented Interfaces:
IGuiInputElementClient<RenderPattern,,ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> ILogicProgrammerElementClient<RenderPattern,ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase>
public class OperatorLPElementClient<T extends OperatorLPElement>
extends Object
implements ILogicProgrammerElementClient<RenderPattern,ContainerScreenLogicProgrammerBase,ContainerLogicProgrammerBase>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSubGui(int baseX, int baseY, int maxWidth, int maxHeight, ContainerScreenLogicProgrammerBase gui, ContainerLogicProgrammerBase container) booleanisFocused(RenderPattern subGui) voidsetFocused(RenderPattern subGui, boolean focused) Set the focus of this element.voidsetValueInGui(RenderPattern subGui) Set the currently stored value in the given sub gui.
-
Constructor Details
-
OperatorLPElementClient
-
-
Method Details
-
getElement
-
setValueInGui
Description copied from interface:ILogicProgrammerElementClientSet the currently stored value in the given sub gui. This is useful when the gui is reused for multiple elements where the actual value is stored in this element.- Specified by:
setValueInGuiin interfaceILogicProgrammerElementClient<RenderPattern,ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> - Parameters:
subGui- The sub gui to put the currently stored value in.
-
isFocused
- Specified by:
isFocusedin interfaceILogicProgrammerElementClient<RenderPattern,ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> - Parameters:
subGui- The corresponding sub gui of this element.- Returns:
- If this element has the active focus. For typing and things like that.
-
setFocused
Description copied from interface:ILogicProgrammerElementClientSet the focus of this element.- Specified by:
setFocusedin interfaceILogicProgrammerElementClient<RenderPattern,ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> - Parameters:
subGui- The corresponding sub gui of this element.focused- If it must be focused.
-
createSubGui
public RenderPattern createSubGui(int baseX, int baseY, int maxWidth, int maxHeight, ContainerScreenLogicProgrammerBase gui, ContainerLogicProgrammerBase container) - Specified by:
createSubGuiin interfaceIGuiInputElementClient<RenderPattern,ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> - Parameters:
baseX- Base xbaseY- Base ymaxWidth- Max widthmaxHeight- Max heightgui- The parent guicontainer- The parent container- Returns:
- A subgui that is shown when activated.
-