ghy
Alejandro Acuña
2025-03-12 26319e4c5bfbee722c15b8e7ccca9b6127bb1cb8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package PA;
 
 
import art.library.model.devices.Device;
import art.library.model.devices.DeviceCommands;
import art.library.model.devices.DeviceGraphicsRuntime;
import com.kitfox.svg.SVGDiagram;
 
 
public class DeviceGraphicsRuntime_Pa_action_aspect extends DeviceGraphicsRuntime
{
 
    public DeviceGraphicsRuntime_Pa_action_aspect(art.library.model.devices.Device device, SVGDiagram diagram)
    {
        super(device, diagram);
    }
 
    private boolean flashOn = false;
 
    public void timer()
    {
        flashOn = !flashOn;
        commands();
    }
 
    public void commands()
    {
        Device device = getDevice();
 
        art.library.model.devices.audio.PA.PaCommands commands = (art.library.model.devices.audio.PA.PaCommands)getDeviceCommands();
     
        setAttribute("icon_delete_all", "display", "none", 999);
        
        if(commands.clearSpeechs == DeviceCommands.CONDITION_YES)
        {
         setAttribute("icon_delete_all", "display", "inline", 999);
        }
    }
 
//    java.io.StringWriter sw = new java.io.StringWriter();
//    art.library.gui.flat.FlatDialog.showDialog(null, "Error", e.getMessage() + "\n\n" + sw.toString(), true, art.library.gui.flat.FlatDialog.DIALOG_ERROR);                        
//    
}