Class TFileExplorerPanel
java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.TElement
io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement
io.github.thecsdev.tcdcommons.api.client.gui.panel.TRefreshablePanelElement
io.github.thecsdev.tcdcommons.api.client.gui.panel.explorer.impl.TFileExplorerPanel
- All Implemented Interfaces:
TParentElement
,ITooltipProvider
,IEnableStateProvider
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Thisinterface
defines the "current state" aTFileExplorerPanel
is in at a given moment.Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement
TPanelElement.TPanelElementEvent_Scrolled
Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
TElement.TElementEvent_ChildAR, TElement.TElementEvent_ContextMenu, TElement.TElementEvent_Moved, TElement.TElementEvent_ParentChanged, TElement.TElementEvent_Resized
-
Field Summary
Modifier and TypeFieldDescriptionprotected @Nullable ActionBar
protected final MouseDragHelper
protected final String
protected @Nullable FileListPanel
protected @Nullable NavigationBar
protected final TFileExplorerPanel.FileExplorerPanelProxy
protected @Nullable SidebarPanel
static final float
The default scale at which theTitleBar.TitleBarProxy.getTitle()
is rendered.protected @Nullable TitleBar
static final net.minecraft.text.Text
static final net.minecraft.text.Text
protected final FileChooserDialogType
protected boolean
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TRefreshablePanelElement
eRefreshed
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement
backgroundColor, COLOR_BACKGROUND, COLOR_OUTLINE, COLOR_OUTLINE_FOCUSED, eScrolledHorizontally, eScrolledVertically, outlineColor, SCROLL_BOTH, SCROLL_HORIZONTAL, SCROLL_VERTICAL, scrollDragX, scrollDragY, scrollFlags, scrollPadding, scrollSensitivity, scrollVelocityX, scrollVelocityY, smoothScroll, smoothScrollSpeed, topmosts
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
alpha, eChildAdded, eChildRemoved, eContextMenu, eMoved, eParentChanged, eResized, height, SP_ALL, SP_INVOKE_EVENT, SP_MOVE_CHILDREN, SP_RELATIVE, SP_UPDATE_TOPMOST, SS_ALL, SS_INVOKE_EVENT, SS_UPDATE_TOPMOST, tooltip, tooltipPositioner, width, x, y, zOffset
Fields inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
MAX_CHILD_NESTING_DEPTH
-
Constructor Summary
ConstructorDescriptionTFileExplorerPanel
(int x, int y, int width, int height, TFileExplorerPanel.FileExplorerPanelProxy proxy) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
complete
(TFileChooserResult result) protected final void
complete
(TFileChooserResult.ReturnValue returnValue, File selectedFile) protected final void
completeAsApprove
(File selectedFile) protected final void
protected final void
getProxy()
Returns theTFileExplorerPanel.FileExplorerPanelProxy
associated with thisTFileExplorerPanel
.final void
init()
Initializes thisTRefreshablePanelElement
.final boolean
input
(TInputContext inputContext) An input handler that handles inputs on theTInputContext.InputDiscoveryPhase.MAIN
input phase.final void
postRender
(TDrawContext pencil) final void
render
(TDrawContext pencil) Renders this GUI element on the screen.protected final boolean
TRefreshablePanelElement_super_input
(TInputContext inputContext) Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TRefreshablePanelElement
refresh
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement
__getHorizontalSeCnvElm, __getVerticalSeCnvElm, applyScrollDrag, getBackgroundColor, getHorizontalScrollAmount, getHorizontalScrollKnobSize01, getOutlineColor, getScrollFlags, getScrollPadding, getScrollSensitivity, getSmoothScroll, getVerticalScrollAmount, getVerticalScrollKnobSize01, hasScrollFlag, input, inputHorizontalScroll, inputScroll, inputScroll, inputSmoothScroll, inputSmoothScroll, inputVerticalScroll, isScrollable, renderSmoothScroll, scrollToChild, setBackgroundColor, setHorizontalScrollAmount, setOutlineColor, setScrollFlags, setScrollPadding, setScrollSensitivity, setSmoothScroll, setVerticalScrollAmount
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
canBeAddedTo, createContextMenu, getAlpha, getChildren, getEnabled, getHeight, getItemRenderer, getParent, getParentTElement, getParentTScreen, getTextRenderer, getTooltip, getTooltipPositioner, getWidth, getX, getY, getZIndex, getZOffset, isDragging, isEnabled, isEnabledAndVisible, isFocusable, isFocused, isFocusedOrHovered, isHoverable, isHovered, isVisible, move, moveChildren, next, previous, setAlpha, setPosition, setPosition, setSize, setSize, setTooltip, setZOffset, tick, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
addChild, addChild, clearChildren, findChild, findLastChild, findParent, findParentTElement, forEachChild, getEndX, getEndY, removeChild, removeChild
-
Field Details
-
TEXT_SCALE
public static final float TEXT_SCALEThe default scale at which theTitleBar.TitleBarProxy.getTitle()
is rendered.- See Also:
-
TXT_ACTION_SAVE
public static final net.minecraft.text.Text TXT_ACTION_SAVE -
TXT_ACTION_OPEN
public static final net.minecraft.text.Text TXT_ACTION_OPEN -
proxy
-
type
-
extension
-
userMadeAChoice
protected boolean userMadeAChoice -
titleBar
-
actionBar
-
sidebarPanel
-
fileListPanel
-
dragHelper
-
-
Constructor Details
-
TFileExplorerPanel
public TFileExplorerPanel(int x, int y, int width, int height, TFileExplorerPanel.FileExplorerPanelProxy proxy)
-
-
Method Details
-
getProxy
Returns theTFileExplorerPanel.FileExplorerPanelProxy
associated with thisTFileExplorerPanel
. -
TRefreshablePanelElement_super_input
-
input
Description copied from interface:TParentElement
An input handler that handles inputs on theTInputContext.InputDiscoveryPhase.MAIN
input phase.- Specified by:
input
in interfaceTParentElement
- Overrides:
input
in classTPanelElement
- Parameters:
inputContext
- TheTInputContext
containing information about a given input.- See Also:
-
render
Description copied from interface:TParentElement
Renders this GUI element on the screen.- Specified by:
render
in interfaceTParentElement
- Overrides:
render
in classTPanelElement
- Parameters:
pencil
- TheTDrawContext
.
-
postRender
- Overrides:
postRender
in classTPanelElement
-
completeAsError
protected final void completeAsError() -
completeAsCancelled
protected final void completeAsCancelled() -
completeAsApprove
-
complete
-
complete
-
init
public final void init()Description copied from class:TRefreshablePanelElement
Initializes thisTRefreshablePanelElement
.- Specified by:
init
in classTRefreshablePanelElement
-