JScratch
Loading...
Searching...
No Matches
com.jscratch.ui.AssetPanel Class Reference
Inheritance diagram for com.jscratch.ui.AssetPanel:

Public Member Functions

 AssetPanel (String type, List< String > assets)
void refreshList (List< String > assets)

Private Member Functions

void updatePreview (String filename)

Private Attributes

DefaultListModel< String > listModel = new DefaultListModel<>()
JList< String > list = new JList<>(listModel)
JLabel previewLabel = new JLabel("No Preview", SwingConstants.CENTER)
String type
List< String > currentAssets

Detailed Description

Definition at line 11 of file AssetPanel.java.

Constructor & Destructor Documentation

◆ AssetPanel()

com.jscratch.ui.AssetPanel.AssetPanel ( String type,
List< String > assets )

Definition at line 18 of file AssetPanel.java.

Member Function Documentation

◆ refreshList()

void com.jscratch.ui.AssetPanel.refreshList ( List< String > assets)

Definition at line 62 of file AssetPanel.java.

◆ updatePreview()

void com.jscratch.ui.AssetPanel.updatePreview ( String filename)
private

Definition at line 70 of file AssetPanel.java.

Member Data Documentation

◆ currentAssets

List<String> com.jscratch.ui.AssetPanel.currentAssets
private

Definition at line 16 of file AssetPanel.java.

◆ list

JList<String> com.jscratch.ui.AssetPanel.list = new JList<>(listModel)
private

Definition at line 13 of file AssetPanel.java.

◆ listModel

DefaultListModel<String> com.jscratch.ui.AssetPanel.listModel = new DefaultListModel<>()
private

Definition at line 12 of file AssetPanel.java.

◆ previewLabel

JLabel com.jscratch.ui.AssetPanel.previewLabel = new JLabel("No Preview", SwingConstants.CENTER)
private

Definition at line 14 of file AssetPanel.java.

◆ type

String com.jscratch.ui.AssetPanel.type
private

Definition at line 15 of file AssetPanel.java.


The documentation for this class was generated from the following file: